#include #include #include typedef long long ll; int main(void) { std::cin.tie(0); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(3); int n; std::cin >> n; for (int i = 0; i < n; ++i) { ll g, d; std::cin >> g >> d; if ((g - 30000*d)*6 >= 3000000) { std::cout << "YES" << std::endl; for (int j = 0; j < 6; ++j) std::cout << i+1 << std::endl; return 0; } } std::cout << "NO" << std::endl; return 0; }