i,m,p;main(q){for(gets(&p);m<500000&&~scanf("%d%d",&p,&q);m=m
499999;puts(q?"YES":"NO");for(p=6;q&&p--;printf("%d\n",i));}