AB = input() AB_split = AB.split() AB_split[0] = int(AB_split[0]) AB_split[1] = int(AB_split[1]) S = input() print(f'{AB_split[0] + AB_split[1]} {S}')