import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
public class Tets1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Random r=new Random();
HashSet<Integer> hs=new HashSet<>();
while(hs.size()<10) {
int num=r.nextInt(20)+1;
hs.add(num);
}
Iterator<Integer> it=hs.iterator();
while(it.hasNext()) {
System.out.println(it.next());
}
}
}