#include <bits/stdc++.h>
using namespace std;
int main() {
  int A;
  string B;
  stringstream ss;
  cin >> A;
  ss << setw(3) << setfill('0') << A;
  ss >> B;
  cout << B.substr(2, 1) << endl;
  return 0;
}
