str1 = input()
str2 = input()
str3 = input()
strResult = str1 + str2 + str3
float1 = float(input())
float2 = float(input())
float3 = float(input())
floatResult = float1 + float2 + float3
print(strResult)
print(floatResult)