fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. string b;
  8.  
  9. cin>>b;
  10.  
  11. cout<<b[0]-'0';
  12.  
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 15232KB
stdin
1234
stdout
1