val = 0 while True: try: passwords = input().split() for str in passwords: if len(str) <= 8: print("NG") break a,b,c,d = 0,0,0,0 for s in str: if 'a'<=s<='z': a=1 elif 'A...