One day Artyom got his channel blocked on one of the video hosting sites. “So they…
- User
One day Artyom got his channel blocked on one of the video hosting sites. “So they blocked him and blocked him,” he thought, and decided to reupload his videos to other video hosting sites. Artyom decided to approach this process from a research point of view in order to find out which video hosting is better. To begin with, Artyom decided that he would upload each video to exactly one video hosting so that his viewers would be motivated to subscribe to all video hosting sites. After all, if more or fewer viewers subscribed to a particular video hosting, it could skew the viewing statistics. Artem further decided that the minimum and maximum number of videos he uploaded to each video hosting site should differ as little as possible. After all, if more or fewer videos are uploaded to a certain video hosting, it can also distort the viewing statistics. Artem was about to upload videos to video hosting sites, but he noticed that each video can be related to exactly one topic. Different topics can be interesting to different viewers. Therefore, Artyom decided that for even more uniformity he should upload videos so that for each topic the minimum and maximum number of uploaded videos of that topic on each video hosting site also differed as little as possible. Artyom has realized that he has overcomplicated the task and he will not be able to cope without your help. The maximum score for the task is 100.
Input data format The first line contains three natural numbers N, M, K (1 ≤ N ≤ 10^5, 1 ≤ M, K ≤ N) - the number of videos, topics and video hosting. All of them are numbered from one. The second line contains N natural numbers ti: (1 < ti < M) - the topic of the i-th video clip. video clip.
Output data format Print K lines. Each line x must start with an integer S - the number of videos uploaded to the video hosting with the number x. Next come S integers - the numbers of the corresponding videos.
Example 1 Input data 10 4 3 1 2 2 3 3 3 4 4 4 4 Output data 4 1 4 7 10 3 2 5 8 3 3 6 9
- Assistant