using System;
public class Program
{
public static void Main()
int rev=0,r;
Console.WriteLine("enter th no");
int n=int.Parse(Console.ReadLine());
while(n!=0)
r=n%10;
rev=rev*10+r;
n=n/10;
}
Console.WriteLine(rev);