School Team Contest #1 Problem A C*++ Calculations