#include <stdio.h> #include <stdlib.h> int main() { long long a=0; int b=0; scanf("%lld",&a); b=(abs(a)/10)%10; printf("%d",b); return 0; }