s = list(input())
n = len(s)
for i in range(n):
    if(s[i] == '5'):
        s[i] = '*'
print(''.join(s))