#!/usr/bin/env python innums = input().split() intext = input() ans = 0 for i in innums: ans += int(i) print(str(ans) + ' ' + intext)