ab = input() s =input() print(sum(ab.split( ))+" "+s)