In American usage, the number 84 672 is said

EIGHTY-FOUR THOUSAND, SIX HUNDRED SEVENTY-TWO

Count the letters in each of those words, multiply the counts, and you get \[ 6 \times 4 \times 8 \times 3 \times 7 \times 7 \times 3 = 84672 \] Brandeis University mathematician Michael Kleber calls such a number fortuitous. The next few are 1 852 200, 829 785 600, 20 910 597 120 and 92 215 733 299 200.

If you normally say and after hundred when speaking number names, then the first fortuitous number is 333 396 000, which is said

THREE HUNDRED AND THIRTY-THREE MILLION, THREE HUNDRED AND NINETY-SIX THOUSAND

In that case, the next few fortuitous numbers are 23 337 720 000, 19 516 557 312 000, 56 458 612 224 000 and 98 802 571 392 000.

And 54 works in both French (CINQUANTE QUATRE) and Russian (пятьдесят четыре).

Input

A sentence on a single line.

Output

The product of the lengths of the words in the sentence, where a word is defined as the longest possible sequence of consecutive letters.

Example

Input:

EIGHTY-FOUR THOUSAND, SIX HUNDRED SEVENTY-TWO

Output:

84672

Resources