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