Problem5966--ABC212 —— B - Weak Password

5966: ABC212 —— B - Weak Password

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

You are given a 44-digit PIN: X1X2X3X4X1X2X3X4, which may begin with a 00. 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 ii such that 1i31≤i≤3Xi+1Xi+1 follows XiXi. Here, j+1j+1 follows jj for each 0j80≤j≤8, and 00 follows 99.

If the given PIN is weak, print Weak; otherwise, print Strong.

Input

Input is given from Standard Input in the following format:
$X_1X_2X_3X_4$

Output

If the given PIN is weak, print Weak; otherwise, print Strong.

Constraints

$0≤X_1,\ X_2,\ X_3,\ X_4≤9$
$X_1,\ X_2,\ X_3,\ X_4$ are integers.

Sample 1 Input

7777

Sample 1 Output

Weak
All four digits are $7$, satisfying the first condition, so this PIN is weak.

Sample 2 Input

0112

Sample 2 Output

Strong
The first and second digits differ, and the third digit does not follow the second digit, so neither condition is satisfied.

Sample 3 Input

9012

Sample 3 Output

Weak
Note that $0$ follows $9$.

HINT

题目来源:AtCoder ABC212 B题

Source/Category