print("enter the first word:")
str1=input()
print("enter the second word:")
str2=input()
X=len(str1)
Y=len(str2)
if(X>Y):
    print("first word is longest")
else:
    print("second word is longest")

