#include <stdio.h>

int main()
{
    int a;
    scanf("%d",&a);
    printf("%d",a / 1 % 10);
    return 0;
}

//知识点 a / 权位 % 10
//权位就是控制打印那个位置上的数