import re
string = "11 12 13 14"

def repl(m):
	number = int(m.group(1)) + 1
	return str(number)

print re.sub(r'\b(\d+)\b', repl, string)