#Iが入力 #Jは死亡フラグの合わせた値 I=[1,0,1,1] J=I[0]+I[1]+I[2] if I[3]==1: print("SURVIVED") elif J<2: print("SURVIVED") else: print("DEAD") print()