a = list(map(int, input().split())) s = input() r = 0 for x in a: r = r + x print(r, s)