puts (("\n"+`dd`).match(/[a-z]|[A-Z]|\n0+\d|\n[2-9]|\n1[3-9]|\n12[4-9]|\n123[5-9]|\n1234[6-9]|\d{6}/))? "NG":"OK"