#atcoder beginner tutorial

# a = int(input())
# b,c = map(int,input().split())
# s = str(input())

# add = a + b + c
# print(add,s)

a = int(input())
b,c = map(int,input().split())
s = str(input())

print(a + b + c, s)