Greedy Coach

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

A certain contest system contains nn problemsets, numbered from 1 to nn. Sometimes, the coach wants to hold a training for a team of three of his students. Every training uses exactly one problemset. The coach has to assign a problemset for the training such that none of the students on the team took part in a training with the same set before. In case this is impossible, the training is not conducted.

Consider the following two greedy strategies of assigning a problemset to a team of students for training.

The first strategy, which we'll call strategy A, is to assign the lowest-numbered problemset which hasn't yet been seen by any of the students on the team.

The second strategy, which we'll call strategy B, is to assign the problemset which has been seen by the largest number of students in total during the previous trainings and, at the same time, has not yet been seen by any of the students on the team. In case there are several such problemsets, strategy B is to assign the lowest-numbered of those.

We want to find out if one of the strategies is strictly better than the other. First, you're asked to report there's none or find such integer nn and such a sequence of team formations that strategy A allows to assign problemsets for all trainings, while strategy B doesn't allow to assign a problemset for at least one training. Second, the same question is asked with regard to a situation where strategy B allows to assign problemsets for all trainings while strategy A doesn't.

입력

The only line of the input contains a single integer tt (0t20 \le t \le 2). If t=0t = 0, you're allowed to output either 1-1 or any valid sequence of team formations. If t=1t = 1, you have to find a situation where strategy A allows to assign problemsets for all trainings, while strategy B doesn't. If t=2t = 2, you have to find a situation where strategy B allows to assign problemsets for all trainings, while strategy A doesn't.

Test case 1 has t=0t = 0, test case 2 has t=1t = 1, and test case 3 has t=2t = 2.

출력

If the required situation is impossible, output a single integer 1-1. Otherwise, output two integers nn and qq (1n1001 \le n \le 100; 1q1041 \le q \le 10^4) --- the number of problemsets and the number of trainings. Each of the following qq lines must contain three non-empty strings a_ia\_i, b_ib\_i and c_ic\_i --- the identificators of students on the team. These lines should correspond to teams going for a training in chronological order. Student identificators must consist of lowercase English letters and digits. Different identificators must belong to different students, and each team must consist of three different students. It's guaranteed that if the required situation is possible, there also exists one with n100n \le 100 and q104q \le 10^4.

힌트

In the example test case, if the coach follows any of the two strategies, the first and the third trainings will be held on problemset 1, while the second and the fourth trainings will be held on problemset 2.