Construct a set of $$$m \leq 50$$$ permutations of $$$\{1, 2, \ldots 500\}$$$, such that for each tuple $$$(i, j, k)$$$, where $$$1 \leq i, j, k \leq 500$$$, with $$$i \neq j, j \neq k$$$ and $$$k \neq i$$$, there exists a permutation in the set that contains $$$(i, j, k)$$$ as a subsequence.
There is no input for this problem.
On the first line print $$$m(1 \leq m \leq 50)$$$, the number of permutations you want to print. Print a permutation of $$$\{1, 2, \ldots 500\}$$$ on each of the next $$$m$$$ lines.