#C11452. Strong Password Checker
Strong Password Checker
Strong Password Checker
We define a strong password as one that satisfies the following criteria:
- It must be at least 8 characters long.
- It must contain at least one lowercase letter, one uppercase letter, and one digit.
- It must have at least one special character from the set \(\{!@#$%^&*()-+\}\).
Given a password as input, determine whether it is STRONG or WEAK. Output STRONG
if the password meets all the criteria; otherwise, output WEAK
.
inputFormat
The input consists of a single line containing a string which represents the password to be checked. The string does not contain any spaces.
outputFormat
Output a single line: STRONG
if the password satisfies all the conditions; WEAK
otherwise.## sample
1faB9#c1d
STRONG