import re
s = "11 12 13 14"
res = re.sub(r'\d+', lambda x: str(int(x.group()) + 1), s)
print(res)