# coding:UTF-8 AtoB = input().split() A = int(AtoB[0]) B = int(AtoB[1]) S = input() N = A + B print(str(N) + " " + str(S))