#C3250. Password Strength Checker
Password Strength Checker
Password Strength Checker
You are given a password string and you need to determine if it is strong based on the following criteria:
- The password must have at least $\textbf{8}$ characters.
- It must contain at least one uppercase letter (A-Z).
- It must contain at least one lowercase letter (a-z).
- It must contain at least one digit (0-9).
- It must contain at least one special character from the set: \(\{- ! @ # \$ % \^ & \*\}\).
Your task is to read the password from standard input and print STRONG
if the password meets all the above criteria or WEAK
otherwise.
inputFormat
The input consists of a single line, containing the password string to be evaluated.
outputFormat
Output a single line: STRONG
if the password is strong as per the criteria, otherwise WEAK
.
Abcdef1!
STRONG
</p>