0pts蒟蒻求助;;;
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
long long n,m,k,p;
cin>>n>>m>>k>>p;
long long zh=k/p;
long long ch=k-zh*p;
if((zh-1)*(n-p)>=ch)
{
cout<<"YES"<<endl;
for(long long i=1;i<=p;i++)
{
cout<<zh<<' '<<m-zh<<endl;
}
long long kk=1;
for(long long i=p+1;i<=n;i++)
{
while(ch<zh-kk) kk++;
cout<<zh-kk<<' '<<m-(zh-kk)<<endl;
ch-=zh-kk;
}
}
else
{
cout<<"NO"<<endl;
}
}