phonemic2decimal

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# convert phonemes to decimal numbers
from sys import stdin, stdout

def syllables2decimal(text):
    result=u''.join(reversed(text.lower().split()))
    c = ['n', 'r', 's', 't', 'l', 'k', 'm', 'p', 'f', 'sch']
    v = ['e', 'i', 'a', 'o', 'u', 'ei', 'ie', 'au', 'eu', 'ue']
    for phonemes in c, v:
        for i, p in enumerate(reversed(phonemes)):
            result = result.replace(p, str(9-i))
    return result

if __name__ == '__main__':
   words = stdin.read().strip()
   result = syllables2decimal(words).encode('utf-8')
   stdout.write(result + '\n')