using System; namespace ConsoleApp3 { class Program { static void Main(string[] args) { string[] ss = Console.ReadLine().Split(); double a = double.Parse(ss[0]); double b = double.Parse(ss[1]); for (int x = 0; x <= 200; x++) { bool f = false; for (int y = 0; x + y <= 200; y++) { double a2 = Math.Round((100 * (double)x) / (x + y), MidpointRounding.AwayFromZero); double b2 = Math.Round((100 * (double) y) / (x + y), MidpointRounding.AwayFromZero); if (a == a2 && b == b2) { Console.WriteLine(x + y); f = true; break; } } if (f) break; } } } }