import java.util.*; public class A{ static Scanner s = new Scanner(System.in); public static void main(String[] args) { int a=s.nextInt(),b=s.nextInt(); System.out.println(b%a==0?b/a:"NO"); } }