using System; using System.Collections.Generic; using System.IO; using System.Linq; using static Extensions; static class Extensions { public static void GetNums(out T1 dest1, out T2 dest2) { var str = Console.ReadLine().Split(); dest1 = (T1)typeof(T1).GetMethod("Parse", new Type[] { typeof(string) }).Invoke(null, new object[] { str[0] }); dest2 = (T2)typeof(T2).GetMethod("Parse", new Type[] { typeof(string) }).Invoke(null, new object[] { str[1] }); } } class Program { static StreamWriter sw; static void Main() { sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Console.Out.Flush(); } static void Solve() { int a, b; GetNums(out a, out b); sw.Write(a + b + " "); sw.Write(Console.ReadLine()); } }