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; BigInteger a = BigInteger.Parse(str[0]); BigInteger b = BigInteger.Parse(str[1]); BigInteger x = 0; BigInteger y = 0; BigInteger count = 0; if (a == b || a==0&&b != 0 ||b== 0&& a !=0) { Console.WriteLine(1); } else if(a == b&& a == 0) { Console.WriteLine(0); } else { if (a > b) { count = b; } else { count = a; } x += count; y = count; Console.WriteLine(2); } } }