#include <iostream>using namespace std; int main() {string napis; while(cin>>napis){ auto dl=napis.length(); for(auto i=dl-1; i+1>0; i--){ cout<<napis[i]; } cout << endl; }return 0;}
Alamakota Kotma2lata IlelatmaAla Piszemydobrekody
atokamalA atal2amtoK alAamtalelI ydokerbodymezsiP
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!