a = input() b = input() s = input() n = int(a) + int(b) print('{} {}'.format(s, n))