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