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 void Main() { int a, b; GetNums(out a, out b); Console.Write((a + b) + " "); Console.Write(Console.ReadLine()); } }