using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using static System.Math; namespace SortItems { class Program { static void Main(string[] args) { var n = Console.ReadLine().Split().Select(double.Parse).ToArray(); double A = n[0]; double B = n[1]; for (var a = 0; a <= 200; a++) { var chk = false; for (var b = 0; a + b <= 200; b++) { double x = Math.Round((100 * (double)a) / (a + b) , MidpointRounding.AwayFromZero); double y = Math.Round((100 * (double)b) / (a + b) , MidpointRounding.AwayFromZero); if (x == A && y == B) { chk = true; Console.WriteLine(a + b); break; } } if (chk) { break; } } } } }