#include using namespace std; int main() { int n; cin >> n; int a = (n / 10) % 10; cout << a << endl; return 0; }