def ile_pole(n):
	return n*n
def ile_kolorowych(n,kolor):
	if kolor=="b":
		return n*n//2
	else:
		return(n*n-1)//2+1
def testuj_szachownica(n):
	for i in range(2,33):
		print(i, ile_pole(i), ile_kolorowych(i, "b"), ile_kolorowych(i,"c"))
print(testuj_szachownica(32))