import re
m = re.search(r"^\d{4,}?([12]\d{7})", "6278041121932517")
if m:
	print(m.group(1))