$/=$";print"A+B+C=",($_=<>+<>+<>)-3?$_:Infinity