include<bits/stdc++.h>

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