fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long n;
  6. cin >> n;
  7. cout << (n / 100) % 10;
  8. return 0;
  9. }
Success #stdin #stdout 0s 4536KB
stdin
512
stdout
5