시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB544100.000%

문제

Helen and her friends have discovered an amazing new game for their phones. The game, called Monster-Go, is about catching monsters by walking to different monster nests outdoors. There are an infinite number of monsters of a single type available at each nest. When the friends arrive at a monster nest, each of them will catch and add the monster type at that nest to their collection. There are a total of $50$ different monster types that the friends can catch, numbered $0,1,\ldots,49$.

To make the game more exciting, the $N$ friends have decided that each player will have a personalized list of exactly $12$ monster types to collect. The first person to catch all the monsters on their list wins the game. They want to design the lists in such a way that, no matter the order in which they visit the monster nests, there is always a single, unique winner -- never a tie. The friends always walk around together as a group and arrive together at a monster nest.

Can you help them design the lists? Your score will depend on the number of values of $N$, the number of people playing, for which you are able to solve the problem.

입력

The first and only line of input contains the integer $N$, the number of players.

출력

Output $N$ lines, where the $i$th line has $12$ distinct integers $c_{i,1}, c_{i,2}, \ldots, c_{i,12}$ (where $0 \le c_{i,j} \le 49$) representing the monster types on the list of person $i$. If there are multiple solutions, you may print any of them.

제한

  • $1 \leq N \leq 50$.

예제 입력 1

2

예제 출력 1

0 1 2 3 4 5 6 7 8 9 10 11
38 39 40 41 42 43 44 45 46 47 48 49

노트

In the sample, where there are $N = 2$ friends, the program should output two lists. Indeed, for the two lists in the sample output, the friends cannot both win at the same time, no matter the order in which they visit the monster nests. Note that there are many other valid answers.

채점 및 기타 정보

  • 50개 이상의 데이터를 맞아야 를 받는다.
  • 예제는 채점하지 않는다.
  • 이 문제의 채점 우선 순위는 2이다.