const list = [] let itm; while(itm=readline()){ list.push(itm) } for(let itm of list){ if(!(/.{9,}/.test(itm))){ console.log('NG'); continue; } let sum = 0; if(/[a-z]/.test(itm))sum++ if(/[A-Z]/.test(itm))sum++ if(/[\d]/.test(itm))sum++ if(/[^\da-zA-Z...