#include #include #include using namespace std; int N,M,K; int main() { cin>>N>>M>>K; if(K==0) { if(N==0)cout< >ans; for(int t=0;t<2;t++) { vector >now; now.push_back(make_pair(t,1)); int n=N,m=M; if(t==0)n--; else m--; for(int k=0;k0) { int id=0; while(now[id].first!=0)id++; now[id].second+=n; } //1 if(m>0) { int id=(int)now.size()-1; while(now[id].first!=1)id--; now[id].first+=m; } ans=now; break; } if(ans.empty())cout<<-1<p:ans)for(int i=0;i