100. Password Strength Checker

Acceptance — 0 accepted 0 submissions

Easy
ConditionalsStrings
No companies listed
A bank website says a password is Strong only if it satisfies all of these:
• at least 8 characters
• at least one capital letter
• at least one small letter
• at least one digit
• at least one special character (anything that is not a letter or digit)

Otherwise it is Weak. Check the given password.

Input Format
A single line containing the password (no spaces).

Output Format
Print Strong or Weak.

Constraints
• 1 ≤ length ≤ 100

Example 1

Input
Basha@2024
Output
Strong

Explanation 10 characters with a capital, small letters, digits and a special character.

Example 2

Input
password
Output
Weak

Explanation No capital, digit or special character.

Example 3

Input
Ab1@
Output
Weak

Explanation Has every type but is only 4 characters long.

Example 4

Input
Coder123
Output
Weak

Explanation No special character.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
Strong
No results yet
Run your code to test it against the sample cases.
Problem List