def main(): a = map(int, input().split()) string = input() print("{} {}".format(str(sum(a)), string)) if __name__ == '__main__': main()