s = input()

import re
 
s_new = re.sub(r'[0-9]+', r'*\g<0>*', s)

print(s_new)