import java.util.Scanner; public class class_name { public static void main(String[] args){ //System.out.println("Hello World!"); int a; int b; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); if (Math.abs(a)<=Math.abs(b) && b%a==0){ System.out.println(b/a); }else{ System.out.println("NO"); } } }