ilove Strings

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

It’s that time of year when love is in the air. You’re no stranger to love. You are obsessed with strings but not just any strings. You love “ilove” Strings. An “ilove” String is a string of length 5 with the following properties:

  • Alternates between vowels (excluding ‘y’ and ‘Y’) and consonants (including ‘y’ and ‘Y’)
  • Begins with a vowel (excluding ‘y’ and ‘Y’)
  • Consists of 5 pairwise distinct characters (distinguishing between upper and lower case)

Examples of “ilove” Strings includes “ilove”, “image”, “IxoXO”, and “abide”. Examples of non-“ilove” Strings include , “ideas”, “maker”, “inane”, “oxOXo” and “abides”.

The loveliness of a string is the number of subsequences of the string that form an “ilove” String. Although “ilooove” is not an “ilove” String, it does have a loveliness of 3.

입력

Input contains a single string of between 11 and 100,000100\\,000 lowercase and uppercase Latin characters, representing the string whose loveliness is to be computed.

출력

For the provided string, print one line with a single integer LL — the loveliness of the string modulo 109+710^9 + 7.