import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); scan.close(); double k1 = (double) B / A; int k2 = B / A; if(k1 == k2) { System.out.println(k2); }else { System.out.println("NO"); } } }