-----Problem description.-----
This problem deals with the I/O methods used in codechef. 
You are supposed to print the integer in its reverse form , or in simple words, print the reverse of the given integer . For instance , reverse of  120 is 21  (not 021)  .

-----Input-----
- The first line of each test case contains an integer T .

- following T lines contains distinct integers N .



-----Output-----
- Output should contain T line , each line with the distinct integer as asked in question . 

-----Constraints-----
- 1 ≤ T ≤ 105

- 1 ≤ N ≤ 1018

Subtask 1 :  N ≤ 105
Subtask 2 :  N ≤ 109
Subtask 3 :  N ≤ 1018



-----Example-----
Input:
3
1234
4567
1

Output:
4321
7654
1

-----Explanation-----
reverse of 1234 is 4321 , 4567 is 7654 & of 1 is 1 

NOTE: testcases may contain large range of data, use datatypes accordingly .

Starter code:

Solutions:
t = int(input())
while t > 0:

 s = int(input())

 while s % 10 == 0 : 
  s /= 10

 print(''.join(reversed(str(s))))

 t = t - 1

for t in range(int(input())):
 y=list(input())
 y.reverse()
 print(int(''.join(y)))

for _ in range(int(input())):
 n=int(input())
 p=str(n)
 p=p[::-1]
 print(int(p))

for t in range(int(input())):
 print(int(input()[::-1]))

import sys
for _ in range(int(sys.stdin.readline())):
 a=list(map(str,sys.stdin.readline().strip().split()))[0]
 print(a.strip('0')[::-1])

for _ in range(int(input())):
 print(int(input().strip()[::-1]))

__author__ = 'Hacktivist'

from sys import stdin

testCases = int(stdin.readline().strip())
for test in range(testCases):
 s = str(stdin.readline().strip())
 print(int(s[::-1]))

def __(n):
 return int(str(n)[::-1])
for i in range(eval(input())):
 a=eval(input())
 print(__(a))


from sys import stdin

T = int(stdin.readline().strip())
for x in range(T):
 N = stdin.readline().strip()
 N = N[::-1]
 while True:
  if N[0] == 0:
   N = N[1:]
  else:
   break
 print(int(N))


t=eval(input())
for test in range(t):
 s=input()

 s=s[::-1]
 ans=""
 i=0
 while i<len(s) and s[i] == '0':
  i=i+1
 while i<len(s):
  ans=ans+s[i]
  i=i+1
 print(ans)

t = int(input())

while t:
 t-=1
 n = input()
 n = n[::-1]
 print(int(n))

for _ in range(eval(input())):
 n=eval(input())
 n=str(n)
 s=n[::-1]
 print(s.strip("0"))

# cook your code here
t= int(input())
for i in range(t):
 a = input()
 a = a.rstrip('0')
 print(a[::-1])


test = int(input())
for _ in range(test):
 n = input()
 n= n[::-1]
 print(int(n))

for i in range(int(input())):
 print(int(input()[::-1]))


# cook your code here
for _ in range(eval(input())):
 string = input()
 string = string[::-1]
 for i in range(len(string)):
  if string[i]!="0":
   break
 print(string[i:])

# Enter your code here. Read input from STDIN. Print output to STDOUT
t=int(input())
for i in range(0,t):
 s=input()
 print(int(s[::-1]))

t= int(input());
while t>0 :
 num = (input());
 a=int(num[::-1]);
 print(a);
 t=t-1;