import sys

str1 = input()
s = str1.replace('5','*')
print(s)