using System;
namespace ConsoleApp24
{
class Program
static void StringToString(long a)
if (a == 0)
Console.WriteLine("0");
}
else
string str = "";
bool n = false;
if (a < 0)
n = true;
a *= -1;
while (a > 0)
str += a % 10;
a /= 10;
if (n == true) Console.Write("-");
for (int i = str.Length - 1; i >= 0; i--)
Console.Write(str[i]);
static void Main(string[] args)
long a = long.Parse(Console.ReadLine());
StringToString(a);