int ReverseInteger(int n)
{
bool negative = false;
if (n<0)
{
n = -n;
negative = true;
}
int m=0;
while(n!=0)
{
m = m*10 + n%10;
n /= 10;
}
return negative? -m : m;
}
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int n;
cout << (-1%10);
while(cin>>n)
cout<<ReverseInteger(n);
return 0;
}