import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String... args) throws Exception { try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) { System.out.println(Arrays.stream(reader.readLine().split(" ")).mapToInt(Integer::parseInt).sum() + " " + reader.readLine()); } } }