#include <iostream>
using namespace std;

int main() {
	int x = 0;
	int y = 4;
	for(; x < y; ++x, --y) {
    	// Do something which uses a converging x and y
    	cout<<x<<" "<<y<<"\n";
	}
	return 0;
}