#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

main()
{
pid_t val;
int n;

	if(val = fork()) {
		int cpt = 0;
		while(1) {
			if(cpt%2 == 0)
				printf("%d \n", cpt);
			cpt++;
		}
	}
	else {
		int cpt2 = 1;
		while(1) {
			if(cpt2%2 == 1) 
				printf("%d \n", cpt2);
			cpt2++;
		}
	}
}
