package yukicoder231; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); long[] g=new long[n]; long[] d=new long[n]; long max=-999999; long maxi=-1; for(int i=0;imax){ max=Math.max(g[i]-30000*d[i], max); maxi=i; } } if(6*max>=3000000){ System.out.println("YES"); for(int i=0;i<6;i++) System.out.println(maxi+1); }else{ System.out.println("NO"); } } }