import operator import sys for line in sys.stdin: a = line.strip().split() a=[int(i) for i in a] ops=[operator.add,operator.sub,operator.mul,operator.truediv] All=[] n=4 C=[] def calc(a,A,C,deep): if deep==3: # print(C) if A[3]==24: return True else: ...