#abc212b. [abc212_b]Weak Password
[abc212_b]Weak Password
Problem Statement
You are given a -digit PIN: , which may begin with a . The PIN is said to be weak when it satisfies one of the following conditions:
- All of the four digits are the same.
- For each integer such that , follows . Here, follows for each , and follows .
If the given PIN is weak, print Weak
; otherwise, print Strong
.
Constraints
- , , , and are integers.
Input
Input is given from Standard Input in the following format:
Output
If the given PIN is weak, print Weak
; otherwise, print Strong
.
Sample Input 1
7777
Sample Output 1
Weak
All four digits are , satisfying the first condition, so this PIN is weak.
Sample Input 2
0112
Sample Output 2
Strong
The first and second digits differ, and the third digit does not follow the second digit, so neither condition is satisfied.
Sample Input 3
9012
Sample Output 3
Weak
Note that follows .