using System.Numerics; public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string str = Console.ReadLine() ?? string.Empty; int a = int.Parse(str[0]); int b = int.Parse(str[1]); if (a > b) { a += 4; if (a > 11) { Console.WriteLine(a - 12); } else { Console.WriteLine(a); } } else { b += 4; if (b > 11) { Console.WriteLine(b - 12); } else { Console.WriteLine(b); } } } }