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