



'''simple docstring'''



from collections import defaultdict
from math import ceil, sqrt



def   __lowerCAmelCase					(							lowerCamelCase   :						int = 1_00_00_00				,		lowerCamelCase   :						int = 10					):






	'''simple docstring'''




	__lowerCAmelCase												=  defaultdict(lowerCamelCase					)

	for outer_width in range(3				,		(t_limit // 4) + 2					):
		if outer_width * outer_width > t_limit:
			__lowerCAmelCase												=  max(
			    ceil(sqrt(outer_width * outer_width - t_limit					)					)				,		1					)
		else:
			__lowerCAmelCase												=  1

		hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

		for hole_width in range(lowerCamelCase				,		outer_width - 1				,		2					):
			count[outer_width * outer_width - hole_width * hole_width] += 1

	return sum(1 for n in count.values() if 1 <= n <= 10					)


if __name__ == "__main__":
	print(f'{solution() = }')




'''simple docstring'''



import re



def   __lowerCAmelCase					(							lowerCamelCase   :						str					):






	'''simple docstring'''




	__lowerCAmelCase												=  re.compile(
	    r"^(?:0|94|\+94|0{2}94)" r"7(0|1|2|4|5|6|7|8)" r"(-| |)" r"\d{7}$"					)

	return bool(re.search(lowerCamelCase				,		lowerCamelCase					)					)


if __name__ == "__main__":
	lowerCAmelCase	:		Optional[Any]				=   '''0094702343221'''

	print(is_sri_lankan_phone_number(phone))