#include using namespace std; #define int long long signed main(){ int n; cin >> n; vector v(n); int a, b; for(int i = 0; i < n; i++){ cin >> a >> b; v[i] = a - b * 30000; } sort(v.begin(), v.end()); if(3000000 <= v[n - 1] * 6){ cout << "YES" << endl; for(int i = 0; i < 6; i++){ cout << n << endl; } }else{ cout << "NO" << endl; } }