#K6841. Categorize String Strength

    ID: 32858 Type: Default 1000ms 256MiB

Categorize String Strength

Categorize String Strength

In this problem, you are given a string consisting of lowercase English letters. The strength of the string is determined by summing the positional values of each letter, where 'a' is 1, 'b' is 2, ..., and 'z' is 26.

Formally, if the input string is \(w\) with characters \(w_1, w_2, \ldots, w_n\), its strength is computed as:

\(S = \sum_{i=1}^{n} (w_i - 'a' + 1)\)

Based on the computed strength, output one of the following categories:

  • Weak if \(S < 50\)
  • Moderate if \(50 \le S \le 100\)
  • Strong if \(S > 100\)

Your program should read from stdin and write the result to stdout.

inputFormat

The input consists of a single line containing a non-empty string of lowercase English letters.

Example:

cat

outputFormat

Output a single word: either Weak, Moderate, or Strong corresponding to the strength of the string.

Example:

Weak
## sample
cat
Weak