A,B = map(int,input().split()) S = int(input()) print(A+B, S)