#include <stdio.h>

int main()
{
	int x,y,z;
	scanf("%d",&x);
	y=x%100;
	z=y/10;
	printf("%d",z);
       return 0;
}
