s = [input() for i in range(2)] tmp = int(s[0].split()) print(str(tmp[0] + tmp[1]) + ' ' + s[1])