first = input() f = first.split() second = input() print(str(int(f[0]) + int(f[1]))+ " " + second)