#include<stdio.h>
#include<string.h>
int main()
{
    int a;
    char b[100];
    scanf("%s",b);
    printf("%s",b[5]);
}