import java.util.Arrays; import java.util.Scanner; public class Main{ static class dungeon implements Comparable{ int g,d; public dungeon(int x,int y){ this.g=x; this.d=y; } public int compareTo(dungeon o) { return (o.g-o.d*30000)-(this.g-this.d*30000); } } public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); dungeon[] dg=new dungeon[n]; for(int i=0;i=3000000) for(int i=0;i<6;i++) System.out.println(1); else System.out.println("NO"); } } }