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