#fileencoding: utf-8 from __future__ import print_function s = sum([int(i) for i in raw_input().strip().split(" ")]) print("%d %s"%(s, raw_input()))