import re,os print re.sub("[1-9]\d*",lambda m:`-~int(m.group())`,os.read(0,1424))