# split 사용하고, 각각의 요소를 서로 다른 문자에 할당할 수 있음을 알기!
x = input()
y, z = x.split('-')
a = z
z = z.upper()
if (y > z):
    print(a)
else:
    print(y)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: