import sys if sys.platform =='ios': import clipboard a=clipboard.get() a = a.split('\n') text = '\n'.join(a) with open('input_file.txt','w') as f: f.write(text) sys.stdin = open('input_file.txt') n = int(input()) for i in range(n): g,d=map(int,input().split()) if (g-30000*d)*6>=30000*100: print("YES") for j in range(6): print(i+1) exit() print("NO")