#include "bits/stdc++.h" using namespace std; #define REP(i, n) for(int i=0; i<(n); i++) int N,T; signed main() { cin >> N; int maxi = 0; int g, d; vector exps; REP(i,N) { cin >> g >> d; int exp = g - 30000 * d; exps.push_back(exp); if (exp >= exps[maxi]) maxi = i; } if (6 * exps[maxi] >= 30000 * 100) { cout << "YES" << endl; REP(i,6) cout << maxi + 1 << endl; } else { cout << "NO" << endl; } return 0; }