import java.util.*;
import java.io.*;
public class Main
{
static boolean visit[];
{
for(int i = 0 ; i < 6 ; i++){
visit = new boolean[46];
lotto("", 0, visit);
}
}
public static void lotto
(String str,
int cnt,
boolean[] boolarr
){ if(cnt == 6){
return;
}
int num = rd.nextInt(45)+1;
if(!boolarr[num]){
boolarr[num] = true;
lotto
(str
+" "+Integer.
toString(num
), cnt
+1, boolarr
); }else{
lotto(str, cnt, boolarr);
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5pby4qOwoKCnB1YmxpYyBjbGFzcyBNYWluCnsKCXN0YXRpYyBib29sZWFuIHZpc2l0W107CglzdGF0aWMgUmFuZG9tIHJkID0gbmV3IFJhbmRvbSgpOwoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBJT0V4Y2VwdGlvbgoJewoJCWZvcihpbnQgaSA9IDAgOyBpIDwgNiA7IGkrKyl7CgkJCXZpc2l0ID0gbmV3IGJvb2xlYW5bNDZdOwoJCQlsb3R0bygiIiwgMCwgdmlzaXQpOwoJCX0KCX0KCXB1YmxpYyBzdGF0aWMgdm9pZCBsb3R0byhTdHJpbmcgc3RyLCBpbnQgY250LCBib29sZWFuW10gYm9vbGFycil7CgkJaWYoY250ID09IDYpewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oc3RyKTsKCQkJcmV0dXJuOwoJCX0KCQkKCQlpbnQgbnVtID0gcmQubmV4dEludCg0NSkrMTsKCQkKCQlpZighYm9vbGFycltudW1dKXsKCQkJYm9vbGFycltudW1dID0gdHJ1ZTsKCQkJbG90dG8oc3RyKyIgIitJbnRlZ2VyLnRvU3RyaW5nKG51bSksIGNudCsxLCBib29sYXJyKTsKCQl9ZWxzZXsKCQkJbG90dG8oc3RyLCBjbnQsIGJvb2xhcnIpOwoJCX0KCX0KfQ==