# 正则表达式处理字符串yyds import re s = input() def addFlag(matched): value = matched.group('value') return '*'+value+'*' s = re.sub('(?P<value>\d+)', addFlag, s) print(s)