processors =10
def m[20]
def f[20]
def one[10]
def two[10]
def three[10]
i=nprocessors


thingplus%=pid*2
thing%=thingplus%-1

a[thing%]=thing%
a[thingplus%]=thingplus%

f[thing%]=1
f[thingplus%]=0

if (f[pid]==0)
{
	one[pid]=a[pid]
}

if (f[pid]==1)
{
	two[pid]=a[pid]
}

if (f[pid]==2)
{
	two[pid]=a[pid]
}


if (pid==1)
{
	for j=0 to 10
	{
		if (one[j] !=0)
		{
			println one[j]
		}
	}
	for j=0 to 10
	{
		if (two[j] !=0)
		{
			println two[j]
		}
	}
	for j=0 to 10
	{
		if (three[j] !=0)
		{
			println three[j]
		}

	}
}