/* 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
	{

System.out.println("\n\t<<<<   연금 복권    >>>>\n");
      
      Random random = new Random();
      random.setSeed(System.currentTimeMillis());
       
      int num=0;
      //List listA = new ArrayList();
      //List listB = new ArrayList();
do{         
random.setSeed(System.currentTimeMillis());
          int jo = random.nextInt(5);

Thread.sleep(System.currentTimeMillis()%250);
          random.setSeed(System.currentTimeMillis());
          int a= (random.nextInt(10));
         
Thread.sleep(System.currentTimeMillis()%250);
         
random.setSeed(System.currentTimeMillis());
          int b= (random.nextInt(10));
          Thread.sleep(System.currentTimeMillis()%250);
          
random.setSeed(System.currentTimeMillis());
          int c= (random.nextInt(10));
          Thread.sleep(System.currentTimeMillis()%250);

random.setSeed(System.currentTimeMillis());
          int d= (random.nextInt(10));
         Thread.sleep(System.currentTimeMillis()%250);
         
random.setSeed(System.currentTimeMillis());
          int e= (random.nextInt(10));
         Thread.sleep(System.currentTimeMillis()%250);
         
random.setSeed(System.currentTimeMillis());
          int f= (random.nextInt(10));
          
//if(!listA.contains(f) &&  !listB.contains(jo) ){
           
         System.out.print("조 : " + (jo+1));
         System.out.println("\t6자리 번호 : " 
                          +a+b+c+d+e+f);
         //listA.add(f);
         //listB.add(jo);

         num ++;
//}

      } while(num!=5);   
         
         
   }

}