import java.util.Scanner;

public class DropDeadStarter
{
	public static Scanner kb= new Scanner(System.in);


	public static void main(String [] args)
	{
		int i;
		int [] dice= new int[9];

		for (i=0; i<9; i++)
			dice[i]= i%6+1;

		showRoll(dice,9);
		showRoll(dice,2);
	}

	/**
	 * Displays rolled dice
 	 *
	 * @param dice  Array to dice.
	 * @param n			Number of dice to be displayed.
	*/
	public static void showRoll(int [] dice, int n)
	{
		int i;
		System.out.println(n+" dice were rolled ...");

		for (i=0; i<n; i++)
			System.out.print("  +-----+");
		System.out.println();

		for (i=0; i<n; i++)
			switch(dice[i]) 
			{
				case 4:
				case 5:
				case 6: System.out.print("  |*   *|"); break;
				case 2:
				case 3: System.out.print("  |*    |"); break;
				case 1: System.out.print("  |     |"); break;
			}
		System.out.println();

		for (i=0; i<n; i++)
			switch(dice[i]) {
				case 1:
				case 3:
				case 5: System.out.print("  |  *  |"); break;
				case 2:
				case 4: System.out.print("  |     |"); break;
				case 6: System.out.print("  |*   *|"); break;
			}
		System.out.println();

		for (i=0; i<n; i++)
			switch(dice[i]) {
				case 4:
				case 5:
				case 6: System.out.print("  |*   *|"); break;
				case 2:
				case 3: System.out.print("  |    *|"); break;
				case 1: System.out.print("  |     |"); break;
			}
		System.out.println();

		for (i=0; i<n; i++)
			System.out.print("  +-----+");
		System.out.println();
	}
}
