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