#include int main(){ int b; scanf("%d",&b); printf("%d\n", (b/10)%10); return 0; }