while True:try:s = input()ans = ''for i, ch in enumerate(s):# leftif ch.isdigit() and (i - 1 < 0 or s[i-1].isalpha()):ans += '*'ans += chif i < len(s) and ch.isdigit() and (i + 1 == len(s) or s[i+1].isalpha()):ans += '*'print(ans)except:break
