#32279: 為何它一直說我輸入題目尚未要求文字??


melodyshih0824 (超萌小辣椒)


a,b,c=map(int,input().split())
flag=False
if a!=0: la=True
else:la=False
if b!=0: lb=True
else: lb=False
if c!=0: lc=True
else: lc=False
if (la and lb)==lc:
    print("AND")
    flag=True
if (la or lb)==lc:
    print("OR")
    flag=True
if (la and (not lb)) or ((not la) and lb)==lc:
    print("XOR")
    flag=True
if not flag: print("IMPOSSIBLE")
#32282: Re: 為何它一直說我輸入題目尚未要求文字??


cges30901 (cges30901)


if (la and (not lb)) or ((not la) and lb)==lc:


這一行寫錯了,所以如果輸入是"1 0 0"你會多輸出XOR