//yukicoder 231 "めぐるはめぐる(1)" //http://yukicoder.me/problems/535 #include using namespace std; int n, g[1005], d[1005]; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> g[i] >> d[i]; } for (int i = 0; i < n; i++) { if (6 * (g[i] - 30000 * d[i]) >= 3000000) { cout << "YES" << endl; for (int j = 0; j < 6; j++) { cout << i + 1 << endl; } return 0; } } cout << "NO" << endl; return 0; }