NA = input() NA = NA.split() NA[0] = int(NA[0]) NA[1] = int(NA[1]) ST = input() print(str(NA[0]+NA[1])+" "+ST)