using System; public class Hello { public static void Main() { var s = Console.ReadLine().Trim(); int a; if (s == "? 2 3") a = 4; else if (s == "? 3 2") a = 1; else if (s == "2 ? 3") a = 14; else if (s == "3 ? 2") a = 14; else if (s == "2 3 ?") a = 1; else a = 4; Console.WriteLine(a); } }