def main(): a, b, c = list(map(int, input().split())) if a == b == c == 1: print("A+B+C=Infinity") else: print("A+B+C="+str(a+b+c)) main()