#include<bits/stdc++.h>
using namespace std;
int N,i,j;
int main(){
cin>>N>>i>>j;
for(int a=1;a<=N;a++)cout<<"("<<i<<","<<a<<")"<<" ";
cout<<endl;
for(int b=1;b<=N;b++)cout<<"("<<b<<","<<j<<")"<<" ";
cout<<endl;
if(i<=j)
{for(int c=1;c<=N+i-j;c++)cout<<"("<<c<<","<<j-(i-c)<<")"<<" ";
cout<<endl;
}
else
{for(int e=1;e<=N-i+j;e++)cout<<"("<<i-(j-e)<<","<<e<<")"<<" ";
cout<<endl;
}
for(int d=1;d<=i+j-1;d++)cout<<"("<<i+j-d<<","<<d<<")"<<" ";
return 0;
}