import strutils, sequtils proc readLine: auto = readLine stdin const num = 30_000 six = 6 let N = readLine().parseInt var P = newSeqwith(0, 0) for i in 0 ..< N: let GD = readLine().split.map parseInt P.add GD[0] - num * GD[1] if P.max * six < num * 100: echo "NO" else: echo "YES" for i in 0 ..< six: echo P.find(P.max) + 1