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