import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; import java.util.TreeSet; public class Main { public static final int EXP = 3000000; public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); boolean flg = false; int num = -1; for (int i = 0; i < N; i++) { final int G = sc.nextInt(); final int D = sc.nextInt(); if (EXP <= 6 * (G - EXP / 100 * D)) { flg = true; num = i; } } System.out.println(flg ? "YES" : "NO"); if (flg) { for (int i = 0; i < 6; i++) { System.out.println(num + 1); } } } }