fork download
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. string s;
  7. cin >> s;
  8. cout << s[0] << s[4] << s [5] << endl;
  9. cout << s[1] << s[2] << s[3];
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 4392KB
stdin
A123TB
stdout
ATB
123