A=map(int,raw_input().split()) MA= max(A) if A[0]==A[1] or A[1]==A[2] or A[0]==A[2]: print 0 elif A[0]A[2]: print "INF" elif A[0]>A[1] and A[1]B[2]: ans+=1 elif B[0]>B[1] and B[1]