# your code goes here
class Solution:
def originalDigits(self, s: str) -> str:
print(s)
v = [0 for x in range(26)]
si = ''
for i in s:
v[ord(i)-ord('a')] += 1
#print(v[ord(i)-ord('a')])
if(v[ord('z')-ord('a')]):
for i in range(v[ord('z')-ord('a')]):
print('0')
si+='0'
if(v[ord('w')-ord('a')]):
for i in range(v[ord('z')-ord('a')]):
print('2')
si+='2'
if(v[ord('u')-ord('a')]):
for i in range(v[ord('z')-ord('a')]):
print('4')
si+='4'
if(v[ord('x')-ord('a')]):
for i in range(v[ord('z')-ord('a')]):
print('6')
si+='6'
if(v[ord('g')-ord('a')]):
for i in range(v[ord('z')-ord('a')]):
print('8')
si+='8'
return si
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmNsYXNzIFNvbHV0aW9uOgogICAgZGVmIG9yaWdpbmFsRGlnaXRzKHNlbGYsIHM6IHN0cikgLT4gc3RyOgogICAgICAgIHByaW50KHMpCiAgICAgICAgdiA9IFswIGZvciB4IGluIHJhbmdlKDI2KV0KICAgICAgICBzaSA9ICcnCiAgICAgICAgZm9yIGkgaW4gczoKICAgICAgICAgICAgdltvcmQoaSktb3JkKCdhJyldICs9IDEKICAgICAgICAgICAgI3ByaW50KHZbb3JkKGkpLW9yZCgnYScpXSkKICAgICAgICBpZih2W29yZCgneicpLW9yZCgnYScpXSk6CiAgICAgICAgICAgIGZvciBpIGluIHJhbmdlKHZbb3JkKCd6Jyktb3JkKCdhJyldKToKICAgICAgICAgICAgICAgIHByaW50KCcwJykKICAgICAgICAgICAgICAgIHNpKz0nMCcKICAgICAgICBpZih2W29yZCgndycpLW9yZCgnYScpXSk6CiAgICAgICAgICAgIGZvciBpIGluIHJhbmdlKHZbb3JkKCd6Jyktb3JkKCdhJyldKToKICAgICAgICAgICAgICAgIHByaW50KCcyJykKICAgICAgICAgICAgICAgIHNpKz0nMicKICAgICAgICBpZih2W29yZCgndScpLW9yZCgnYScpXSk6CiAgICAgICAgICAgIGZvciBpIGluIHJhbmdlKHZbb3JkKCd6Jyktb3JkKCdhJyldKToKICAgICAgICAgICAgICAgIHByaW50KCc0JykKICAgICAgICAgICAgICAgIHNpKz0nNCcKICAgICAgICBpZih2W29yZCgneCcpLW9yZCgnYScpXSk6CiAgICAgICAgICAgIGZvciBpIGluIHJhbmdlKHZbb3JkKCd6Jyktb3JkKCdhJyldKToKICAgICAgICAgICAgICAgIHByaW50KCc2JykKICAgICAgICAgICAgICAgIHNpKz0nNicKICAgICAgICBpZih2W29yZCgnZycpLW9yZCgnYScpXSk6CiAgICAgICAgICAgIGZvciBpIGluIHJhbmdlKHZbb3JkKCd6Jyktb3JkKCdhJyldKToKICAgICAgICAgICAgICAgIHByaW50KCc4JykKICAgICAgICAgICAgICAgIHNpKz0nOCcKICAgICAgICByZXR1cm4gc2kKICAgICAgICA=