str1=input().strip()
strlist=['*' if char=='5'else char for char in str1]
print("".join(strlist))