s =input().split() dic=['J','Q','K','A'] value=[11,12,13,1] inp=[] if 'joker'in s or 'JOKER' in s: print('ERROR') else: for idx,v in enumerate(s): if v in dic: inp.append(value[dic.index(v)]) else: inp.append(v) operate=[] def func(sr,idx,res,n...