#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; if(b==0){ ll last = N; if(K==last){ p_yes(); }else{ p_no(); } }else{ if(b+1==K){ p_yes(); }else{ p_no(); } } return 0; }