#include <stdio.h>

int main(void) {
int x,m;
scanf("%d",&x);
m=(x%100)/10;
printf("%d",m);

	return 0;
}
