def isPhoneNum(text):
	if len(text)!=12:
		return False
	for i in range(0,3):
		if not text[i].isdecimal():
			return False
	if text[3]!='-':
		return False
	for i in range(4,7):
		if not text[i].isdecimal():
			return False
	if text[7]!='-':
		return False
	for i in range(8,12):
		if not text[i].isdecimal():
			return False
	return True

message='call me at 4.00 pm at 432-144-3232.321-343-2332 is my office.'
for i in range(len(message)):
	piece=message[i:i+12]
	if isPhoneNum(piece):
		print('Phone number found:' +piece)
print('Done')
