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