


'''simple docstring'''






import re






def 		_A (lowerCAmelCase__     :Optional[Any]						)      ->     bool:




     '''simple docstring'''



     _a						=							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(_UpperCamelCase ,  _UpperCamelCase						)						)


if __name__ == "__main__":
 a_    :			int      				=			"0094702343221"

 print(is_sri_lankan_phone_number(phone))








from __future__ import annotations






def      lowerCamelCase_						(				_UpperCamelCase ,				_UpperCamelCase ,				_UpperCamelCase )		->						tuple[float, list[float]]:






				"""simple docstring"""


				snake_case_						:    Dict				=  list(range(len(_UpperCamelCase ) ) )
				snake_case_						:    Dict				=  [v / w for v, w in zip(_UpperCamelCase ,				_UpperCamelCase )]
				index.sort(key=lambda _UpperCamelCase : ratio[i] ,				reverse=_UpperCamelCase )

				snake_case_						:    float				=  0
				snake_case_						:    list[float]				=  [0] * len(_UpperCamelCase )
				for i in index:
								if weight[i] <= capacity:
												snake_case_						:    Dict				=  1
												max_value += value[i]
												capacity -= weight[i]
								else:
												snake_case_						:    Union[str, Any]				=  capacity / weight[i]
												max_value += value[i] * capacity / weight[i]
												break

				return max_value, fractions


if __name__ == "__main__":
	import doctest

	doctest.testmod()
