Each line describes a group of cows. It starts with an integer giving the size S of the group, followed by the S cows in the group (each an integer in the range 1..N).
Mỗi dòng mô tả một nhóm các con bò. Nó bắt đầu với một số nguyên cho kích thước S của nhóm, theo sau là bò S trong nhóm (mỗi một số nguyên trong khoảng 1..N).