Decoding the Kaadi system You have come across an old Indian manuscript, one that describes mounds of buried treasure. The manuscript also tells you the location of the treasure, except that some crucial numbers have been encoded indirectly into the text. You figure out that the text uses a 'Kaadi' system, a restricted subset of the more common 'Katapayadi' system. 

(The Katapayadi system is an ancient Indian system to encode numerals as letters, often used as mnemonics to remember long numbers.)

Your task here is to decode text encoded in the Kaadi system and print out the numerical value. 

Details

Input characters

The Kaadi system is based on the Katapayadi system's rules, but uses only the first row of consonants. Your text here has been transliterated to Latin alphabet, and is known to contain only: 


vowels 'a','e','i','o','u'
consonants 'g','k','c','j', and their capital forms (to represent the aspirated form of those consonants), and 'ṅ' and 'ñ'. 


(You may choose to receive and handle 'ṅ' as 'ng' and 'ñ' as 'ny' if that's more convenient in your language.)

Value assignment

In this system, 


each consonant when followed by a vowel has a digit associated with it. These are: 

'k'=&gt;1, 'K'=&gt;2,
'g'=&gt;3, 'G'=&gt;4,
'ṅ'=&gt;5,
'c'=&gt;6, 'C'=&gt;7,
'j'=&gt;8, 'J'=&gt;9,
'ñ'=&gt;0    


Note however, that these values apply only when these consonants are followed by a vowel. kacCi has the same value as kaCi (ka,Ci=(1,7)) since the middle c is unaccompanied by a vowel.     


Additionally, an initial vowel or sequence of two vowels represents a 0. aikaCi would be: ai,ka,Ci = (0,1,7)
Extra vowels anywhere else in the middle of the text have no value: kauCia is the same as kaCi, the extra vowels can be ignored.


Final numeric value

Once the digit values of the letters have been figured out, the final numerical value is obtained as the reverse order of those digits i.e. the first digit from the text is the least significant digit in the final value. 

Eg.
GucCi has Gu and Ci, so (4, 7), so the final value is 74.
kakakaGo is (1,1,1,4), so the the answer is 4111.
guṅKo is (3,2), so encodes 23. (gungKo if using ASCII-equivalent.)

Input


A string containing a Kaadi-encoded text


will contain only vowels and the above consonants
the vowels are always in lowercase and occur in groups of no more than 2
you may choose to accept the letters for 5 and 0 either as their Unicode characters 'ṅ' and 'ñ' or as their ASCII equivalents 'ng' and 'ny' (they're in lowercase in either form)
you may assume there are no spaces or punctuations



Output


The numerical value of the text, as given by the above rules


for empty input, an empty output or any false-y output in your language of choice is acceptable, in addition to 0
for invalid input (input with anything other than vowels and the above consonants), the output is undefined - anything goes



Test cases

"GucCi"
=&gt; 74
"kakakaGo"
=&gt; 4111
"aiKaCiigukoJe"
=&gt; 913720
""
=&gt; 0 //OR empty/falsey output
"a"
=&gt; 0
"ukkiKagijeCaGaacoJiiKka"
=&gt; 1964783210
"kegJugjugKeg"
=&gt; 2891
"guṅKo"
=&gt; 23
"Guñaaka"
=&gt; 104
"juñiKoṅe"
=&gt;5208


(the last ones can be:

"gungKo"
=&gt; 23
"Gunyaaka"
=&gt; 104
"junyiKonge"
=&gt;5208


if you prefer that.)

Standard rules for I/O and loopholes apply. May the best golfer win!
JavaScript (ES6), 83 bytes
s=&gt;s.replace(s=/(^|[ṅcCjJñkKgG])[aeiou]/g,(_,c)=&gt;o=(s+s).search(c)%10+o,o='')&amp;&amp;o

Try it online!
How?
We use the following regular expression to match either the beginning of the string or one of the Kaadi consonants, followed by a vowel:
/(^|[ṅcCjJñkKgG])[aeiou]/g

For each match in the input string, we invoke the following callback function that takes the content c of the capturing group as parameter:
(_, c) =&gt; o = (s + s).search(c) % 10 + o

We find the value of the consonant by looking for its position in the regular expression (coerced to a string by adding it to itself).
The consonants are ordered in such a way that their value is equal to their position modulo 10:
string   : /  (  ^  |  [  ṅ  c  C  j  J  ñ  k  K  g  G  ]  )  [  a  e  i  o  u  ]  /  g
position : 0  1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 ...
modulo 10: -  -  -  -  -  5  6  7  8  9  0  1  2  3  4  -  ...

When we match the beginning of the string instead of a consonant, c is an empty string whose position in the regular expression is 0 -- which, conveniently, is the expected result in that case.
Finally, we insert this digit at the beginning of the output string o.