Score : $200$ points
You are given a $4$-digit PIN: $X_1X_2X_3X_4$, which may begin with a $0$. The PIN is said to be weak when it satisfies one of the following conditions:
If the given PIN is weak, print Weak
; otherwise, print Strong
.
Input is given from Standard Input in the following format:
$X_1X_2X_3X_4$
If the given PIN is weak, print Weak
; otherwise, print Strong
.
7777
Weak
All four digits are $7$, satisfying the first condition, so this PIN is weak.
0112
Strong
The first and second digits differ, and the third digit does not follow the second digit, so neither condition is satisfied.
9012
Weak
Note that $0$ follows $9$.