def is_kadomatsu(x,y,z): if x==y or y==z or z==x: return False return (x>yz) def bit(i,j,k): return (1<