import re print(re.sub("[1-9]\\d*",lambda x:str(int(x.group(0))+1),open(0).read()))