#C9396. Password Strength Checker
Password Strength Checker
Password Strength Checker
Your task is to check whether a given password is strong. A password is considered strong if it meets all of the following criteria:
- The length of the password is at least $8$ characters, i.e. $|password| \ge 8$.
- It contains at least one lowercase letter (a-z).
- It contains at least one uppercase letter (A-Z).
- It contains at least one digit (0-9).
- It includes at least one special character from the set:
! @ # $ % ^ & * ( ) - +
.
If the password meets all these criteria, print Strong
; otherwise, print Weak
.
inputFormat
The input consists of a single line containing the password string.
outputFormat
Output a single line with either Strong
if the password meets all criteria or Weak
if it does not.
Abc!1234
Strong