#include #include #include #include #include using namespace std; using ll = long long; int main() { int N; cin >> N; int res = -1; for(int i=0; i> g >> d; if(3000000 <= 6*(g - d*30000)) { res = i+1; } } if(res == -1) { cout << "NO" << endl; } else { cout << "YES" << endl; for(int i=0; i<6; ++i) { cout << res << endl; } } }