fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. std::string i;
  5.  
  6. std::cin >> i;
  7. int l = i.length();
  8.  
  9. while (l < 4) {
  10. std::cin >> i;
  11. }
  12.  
  13. std::string f = i.substr(3, 1);
  14. i.insert(3, f);
  15.  
  16. std::cout << i;
  17. return 0;
  18. }
Success #stdin #stdout 0s 3476KB
stdin
148426
stdout
1484426