using System; using System.Collections.Generic; using System.Linq; class Program { public void Solve() { int[] AB = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); Console.WriteLine(AB[1] % AB[0] == 0 ? (AB[1] / AB[0]).ToString() : "NO"); } static void Main() { var solver = new Program(); solver.Solve(); } }