#include #include #include #include #include #include #include #define REP(i,n) for(int i=0;i<(int)n;++i) #define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i) #define ALL(c) (c).begin(), (c).end() #define INF 99999999 using namespace std; int main() { int n; scanf("%d",&n); int g[n]; int d[n]; for(int i = 0; i < n; i++) { scanf("%d %d",&g[i],&d[i]); } int target = 3000000; for(int i = 0; i < n; i++) { if((g[i] - 30000*d[i])*6 >= target) { printf("YES\n"); for(int j = 0; j < 6; j++) { printf("%d\n",(i+1)); } return 0; } } printf("NO\n"); }