class Sample:
def __init__(self):
pass
def reverseNumber(self):
input = 123
temp = input
output = 0
while(temp > 0):
r = temp % 10
temp = temp // 10
output = output * 10 + r
print("Original Number: " + str(input))
print("Reverse Number: " + str(output))
obj = Sample()
obj.reverseNumber()