# -*- coding: utf-8 -*-
"""
Created on Tue Nov  3 22:45:28 2020

@author: ell

atcoder A - Welcome to AtCoder
"""


if __name__ == "__main__":
    a = input()
    b,c = input().split(" ")
    s = input()
    
    tmp = int(a)+int(b)+int(c)
    
    print("{} {}".format(tmp, s))