Birthday

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

문제

Malvina wants to give Buratino a birthday present --- an undirected graph G=(V,E)G = (V, E). Buratino is turning kk, and Malvina wants to reflect this date in the graph by splitting it into kk parts, that is, by presenting the set of nodes of the graph VV as kk pairwise disjoint subsets V_1V\_1, V_2V\_2, \ldots, V_kV\_k. Naturally, in this partition, all of the subsets V_iV\_i must be non-empty.

To demonstrate the connection between the past kk years, Malvina wants to split the graph in such a manner that for each of the edges uvuv, its end nodes uu and vv belonged to either the same or two adjacent subsets. Only subsets V_iV\_i and V_i+1V\_{i+1} are adjacent for every i=1,2,k1i = 1, 2, \ldots k-1.

입력

The first line of the input file contains two space-separated numbers NN and kk --- the number of nodes in the graph (11 \le NN \le 2,0002\\,000) and the number of parts (11 \le kk \le 2,0002\\,000) that the graph must be divided into.

The graph is defined in an adjacency matrix GG. The following NN lines of the file each contain NN symbols. The jjth symbol of the iith line equals '1' if there is an edge between the nodes ii and jj, and '0' if there is no edge between these nodes. It is guaranteed that the matrix is symmetrical (g_i,jg\_{i, j} = g_j,ig\_{j, i}), and that the matrix diagonal only contains zeroes (g_i,ig\_{i, i} = 00).

출력

In the first line of the output file, print "Yep", if the graph can be split into kk parts in the desired manner. Next, print kk lines. The iith line (ii = 11, 22, \ldots, kk) contains the description of the iith part: first, print the number of nodes in V_iV\_i, next print the indices of the nodes belonging to V_iV\_i, separated by spaces, numbered in the same order as in the input data. If there are several ways of splitting the graph, print any one of them.

If it is impossible to split the graph into kk parts in the desired way, print "Nope".