import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int []K = new int[N]; for(int i = 0; i < N; i++) { int G = scan.nextInt(); int D = scan.nextInt(); K[i] = G - 30000 * D; } scan.close(); int max = K[0]; int index = 1; for(int i = 1; i < N; i++) { if(max < K[i]) { max = K[i]; index = i + 1; } } int k = 30000 * 100; if(k <= max * 6) { System.out.println("YES"); for(int i = 0; i < 6; i++) { System.out.println(index); } }else { System.out.println("NO"); } } }