using static System.Console; namespace yuki_485_csharp { class Program { static void Main(string[] args) { var T = ReadLine().Split(); var A = int.Parse(T[0]); var B = int.Parse(T[1]); WriteLine((B % A == 0) ? $"{B / A}" : "NO"); } } }