a = input () b = input () print(str(sum(int(a.split(" "))))+" "+b)