import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000485_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String[] x = br.readLine().split(" "); int a = Integer.parseInt(x[0]); int b = Integer.parseInt(x[1]); System.out.println(b % a == 0 ? b / a : "NO"); } }