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