A,B,C=map(int,input().split()) print("A+B+C=",end="") if A+B+C==3: print("Infinity") else: print(A+B+C)