题解 | #扑克牌大小#
扑克牌大小
https://www.nowcoder.com/practice/d290db02bacc4c40965ac31d16b1c3eb
lis = ['3','4','5','6','7','8','9','10','J','Q','K','A','2','joker','JOKER']
p1,p2 = input().split('-')
p1,p2 = p1.split(),p2.split()
if len(p1)==len(p2):
if lis.index(p1[0])>lis.index(p2[0]):
print(' '.join(p1))
else:
print(' '.join(p2))
elif len(p1)==2 and p1[0].lower()=='joker':
print(' '.join(p1))
elif len(p2)==2 and p2[0].lower()=='joker':
print(' '.join(p2))
elif len(p1)==4:
print(' '.join(p1))
elif len(p2)==4:
print(' '.join(p2))
else:
print('ERROR')