# 2024年9月27日 def f(c): #炸弹 if len(c) == 4 and len(set(c)) == 1: return True return False d = { '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, '10':10, 'J':11, 'Q':12, 'K':13, 'A':14, '2':15, 'joker':16, 'JOKER':17 } s1,s2 = input().split('-') c1 = s1.split() c2 = s2.split() # print(s1,s2) if len(c...