#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int result = (n / 10) % 10;
cout << result;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CglpbnQgbjsKCWNpbiA+PiBuOwoJaW50IHJlc3VsdCA9IChuIC8gMTApICUgMTA7Cgljb3V0IDw8IHJlc3VsdDsKCXJldHVybiAwOwp9