#include using namespace std; typedef long long ll; const ll INF = 1e18; int main() { int n; cin >> n; ll ma = -INF; int idx = -1; for (int i = 0; i < n; ++i) { ll G, D; cin >> G >> D; ll tmp = G - 30000 * D; if (tmp > ma) { ma = tmp; idx = i; } } if (ma * 6 >= 30000 * 100) { puts("YES"); for (int i = 0; i < 6; ++i) cout << idx + 1 << '\n'; } else { puts("NO"); } return 0; }