// No.231 めぐるはめぐる (1) // https://yukicoder.me/problems/no/231 // #include using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int N; cin >> N; int dungeon_num = 0; for (auto i = 1; i <= N; ++i) { int G, D; cin >> G >> D; if (G - D*30000 >= 30000*100/6) { dungeon_num = i; break; } } if (dungeon_num) { cout << "YES" << endl; for (auto i = 0; i < 6; ++i) cout << dungeon_num << endl; } else { cout << "NO" << endl; } }