#include using namespace std; int main() { int n; cin >> n; int maxGD = -1, idx; for (int i = 0; i < n; ++i) { int g, d; cin >> g >> d; if (g - 30000 * d > maxGD) { maxGD = g - 30000 * d; idx = i + 1; } } if (maxGD * 6 >= 30000 * 100) { cout << "YES" << endl; for (int i = 0; i < 6; ++i) { cout << idx << endl; } } else { cout << "NO" << endl; } return 0; }