#include using namespace std; ifstream in("Frame.in"); ofstream out("Frame.out"); int main() { int a,x,y,n; in>>x>>y>>n; for(int i=1;i<=n;i++) { in>>a; if(y%a==0) out<<"YES"<