import java.util.Scanner; public class No485 { public static void main(String[] args){ int A,B; Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String[] inputs = str.split(" "); A = Integer.parseInt(inputs[0]); B = Integer.parseInt(inputs[1]); if(B % A == 0){ System.out.println(B/A); }else{ System.out.println("NO"); } } }