Maximum number, getting wrong in second case

Please help me to solve this problem.

I coded like this but I dont know why its not working.
Kindly help me to rich out the problem. Im a beginners.

xx = int(input())
if xx>=1 and xx <=100:
yy= input().split()
for x in range(xx):
yy[x]
print(max(yy))

Problem link: Maximum | Toph

Hint: yy is a list of strings. max will return the lexicographically largest one.