#include <iostream>
#include <string>
using namespace std;
int main()
{
string imie;
string wyraz;
cout << "Podaj imie: ";
cin >> imie;
for (string::iterator i = imie.end(); i >= imie.begin(); i--)
{
wyraz += *i;
}
cout << endl;
cout << imie << " " << wyraz << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgogCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKQp7CglzdHJpbmcgaW1pZTsKCXN0cmluZyB3eXJhejsKCQoJY291dCA8PCAiUG9kYWogaW1pZTogIjsKCWNpbiA+PiBpbWllOwoJCglmb3IgKHN0cmluZzo6aXRlcmF0b3IgaSA9IGltaWUuZW5kKCk7IGkgPj0gaW1pZS5iZWdpbigpOyBpLS0pCgl7CgkJd3lyYXogKz0gKmk7Cgl9CgkKCWNvdXQgPDwgZW5kbDsKCWNvdXQgPDwgaW1pZSA8PCAiICIgPDwgd3lyYXogPDwgZW5kbDsKCQoJcmV0dXJuICAwOwp9