printЗадачи командного чемпионата

print8. Password

Ограничения: время – 2s/4s, память – 32MiB Ввод: input.txt или стандартный ввод Вывод: output.txt или стандартный вывод copy
Послать решение Blockly Посылки Темы Где Обсудить (0)

A password is good if its length is more than 6 characters, and it contains at least two letters, at least two digits, and at least one nonalphanumeric character.
Write a program that checks the password goodness.
The input file contains one or more lines. Each line contains one password up to 32 characters. ASCII codes of all characters are between 32 and 126.
Write into the output file one line for each password. Print "GOOD" if the password is good. Otherwise print "BAD".

Sample Input

MAGENTA
A1234567
Bob2005
1+2=three
E2-E4

Sample Output

BAD
BAD
BAD
GOOD
BAD
loading