#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
cout << (n / 100) % 10;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglsb25nIGxvbmcgbjsgCgljaW4gPj4gbjsgCgljb3V0IDw8IChuIC8gMTAwKSAlIDEwOyAKCXJldHVybiAwOwp9