using System; using System.Collections.Generic; using System.Linq; using System.Text; class yc2 { static void Main() { int N = int.Parse(Console.ReadLine()); int max = 0,dungeon = 0; int[] exp = new int[N],die = new int[N]; string[] str; for (int i = 0; i < N; i++) { str = Console.ReadLine().Split(); exp[i] = int.Parse(str[0]); die[i] = int.Parse(str[1]); if (max < exp[i] - die[i]*30000) { max = exp[i] - die[i]*30000; dungeon = i+1; } } if (max * 6 >= 3000000) { Console.WriteLine("YES"); for (int i = 0; i < 6; i++) { Console.WriteLine(dungeon); } } else Console.WriteLine("NO"); } }