def string_reverse(n):
    str1=''
    index=len(n)
    while index>0:
        str1+=n[index-1]
        index-=1
    return str1

print(string_reverse('abncgu123'))
#reverse
def var():
	print("welcome")
	if len(a)>len(b):
		print(a)
	elif len(a)==len(b):
		print(a)
	else:
		print(b)
a=input("en")
b=input("en")
var()
#print string which has greater length
