n = input() res = [] for c in n: if c == '5': res.append("*") else: res.append(c) print("".join(res))