#include using namespace std; #define rep(i,a,b) for(int i=a;i> A >> B; if (B % A) printf("NO\n"); else printf("%d\n", B / A); }