#include #include #include using namespace std; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); //必要経験値3 000 000, デスペナ30 000 int n; cin >> n; vector kouritu; int a, b; for (int i = 0; i < n; i++) { cin >> a >> b; kouritu.push_back(a - 30000 * b); } int dungeonNum = static_cast(max_element(kouritu.begin(), kouritu.end()) - kouritu.begin()); int jikyu = *max_element(kouritu.begin(), kouritu.end()); if (jikyu * 6 > 3000000) { cout << "YES" << endl; for (int i = 0; i < 6; ++i) { cout << dungeonNum + 1 << endl; } } else { cout << "NO" << endl; } return 0; }