a = input () b = input () c = a.split( ) d = int(c[0])+int(c[1]) print(str(d)+" "+b)