def is_kadomatsu(a,b,c): if a==b or b==c or c==a: return False return ac or a>b