in1 = raw_input() in2 = raw_input() A, B = map(int, in1.split()) S = in2 print A+B, S