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