#include main() { int x, x1, d; scanf("%i", &x); x1=x/10; d=x1%10; printf("d=%i\n", d); }