import sequtils, strutils proc calc(g, d: int): int = g - 30000 * d const time = 6 p1 = 30_000 target = p1 * 100 let n = parseInt stdin.readLine gds = n.newSeqWith stdin.readLine.split.map parseInt xs = gds.mapIt calc(it[0], it[1]) echo: if (xs.max * time) >= target: "YES\n".`&` xs.maxIndex.succ.repeat(time).join "\n" else: "NO"