Strong password - MarisaOJ: Marisa Online Judge

Strong password

Time limit: 1000 ms
Memory limit: 256 MB
A password is strong if it contains: - At least 1 digit. - At least 1 upper-case characters. - At least 1 lower-case characters. and at least 8 characters long. Determine whether or not the given password $S$ is trong. ### Input - 1 line contains string $S$. ### Output - `STRONG` if $S$ is strong, `WEAK` otherwise. ### Constraints - $1 \le |S| \le 1000$. - $S$ contains only alphanumeric characters. ### Example Input: ``` Chiruno9 ``` Output: ``` STRONG ```