private int[] redukuj(int[] p)
	{
		for (int i = 0 ; i<=m; i++)
		{
			p[m+i] = dodaj(p[m+i],p[i]);
			p[m-k+i] = dodaj(p[m-k+i],p[i]);
		}
		int[] result = new int[m+1];
		for (int i=0;i<m;i++)
			result[i+1] = p[i+m+1];
		return result;
	}