def isok(a,b,c): if a==b or b==c or c==a: return 0 if ac: return 1 if a>b and b10000: print('INF') else : print(res)