Determine all positive integers $n$ such that numbers from $1$ to $n$ can be sorted in some order $x_1,x_2,...,x_n$ with the property that the number $x_1+x_2+...+x_k$ is divisible by $k$, for all $1\le k\le n$., that is $1$ is divides $x_1$, $2$ divides $x_1+x_2$, $3$ divides $x_1+x_2+x_3$, and so on until $n$ divides $x_1+x_2+...+x_n$.