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