#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> H >> W >> N >> K; ll a = H*W; ll b = a % N; ll last; if(b==0){ last = N; }else{ last = b; } if(K==last){ p_yes(); }else{ p_no(); } return 0; }