fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. string wyraz;
  7. cin >> wyraz;
  8.  
  9. cout << wyraz[0] << endl;
  10. cout << wyraz[wyraz.size()-1] << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout