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