#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int arr[100] = { 0 };
int k = 0;
while (n != 0)
{
arr[k] = n % 10;
k++;
n = n / 10;
}
for (int i = 0; i < k; i++)
{
cout << arr[i];
}
cout << endl;
}
using namespace std;
int main()
{
int n;
cin >> n;
int arr[100] = { 0 };
int k = 0;
while (n != 0)
{
arr[k] = n % 10;
k++;
n = n / 10;
}
for (int i = 0; i < k; i++)
{
cout << arr[i];
}
cout << endl;
}