/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		List<String> initialCollection = new ArrayList<String>();
		for(int i = 0; i < 31; i++) {
			initialCollection.add("" + i);
		}
		List<List<String>> resultCollections = new ArrayList<>();
		
		int remainder = initialCollection.size() % 5;
		int minimumCollectionSize = initialCollection.size() / 5;
		
		for (int i = 0; i < 5; i++) {
		    int startIndex = i * minimumCollectionSize;
		    int endIndex = (i + 1) * minimumCollectionSize;

		    if (i < remainder) {
		    	startIndex += i;
		    	endIndex += i + 1;
		    } else {
		    	startIndex += remainder;
		    	endIndex += remainder;
		    }
			//System.out.println(startIndex + "/" + endIndex);
		    List<String> collectionPart = new ArrayList<>(initialCollection.subList(startIndex, endIndex));
			System.out.println(collectionPart.size() + "/ " + collectionPart);
		    resultCollections.add(collectionPart);
		}

		System.out.println(resultCollections);
	}
}