#include <iostream>
using namespace std;
int main(){
int a,inv=0,inv2;
cin >> a ;// 3 cifre;
inv = inv * 10 + (a%10);
a=a/10;
inv2 = inv * 10 + (a%10);
a=a/10;
inv = inv * 10 + (a%10);
a=a/10;
cout << inv;
return 0;}
2.#include <iostream>
using namespace std;
int main(){
int a,c1,c2,c3;
cin >> a;// 3 cifre
c1=a%10;
a=a/10;
c2=a%10;
a=a/10;
c3=a%10;
a=a/10;
cout << c3 << c1;
return 0;}