local A, B, _, S = io.stdin:read("*n", "*n", "*l", "*l") print((A+B).." "..S)