include<bits/stdc++.h>

using namespace std;
int main()
{
int a,c=0;
cin>>a;
c=a%100%10;
cout<<c;
return 0;
}