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