





"""simple docstring"""


def        lowercase__     (       lowercase_ = 3		,lowercase_ = 7		,lowercase_ = 1_000_000      )       ->		int:




      """simple docstring"""

      _UpperCamelCase   :						List[str]    =							0
      _UpperCamelCase   :						Optional[int]    =							1

      for current_denominator in range(1		,limit + 1      ):
            _UpperCamelCase   :						List[str]    =							current_denominator * numerator // denominator
            if current_denominator % denominator == 0:
                  current_numerator -= 1
            if current_numerator * max_denominator > current_denominator * max_numerator:
                  _UpperCamelCase   :						Dict    =							current_numerator
                  _UpperCamelCase   :						List[str]    =							current_denominator
      return max_numerator


if __name__ == "__main__":
  print(solution(numerator=3, denominator=7, limit=100_0000))







"""simple docstring"""


import re




def        lowercase__     (       lowercase_      )       ->		bool:




      """simple docstring"""

      _UpperCamelCase   :						List[Any]    =							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(lowercase_		,lowercase_      )      )


if __name__ == "__main__":
  lowerCamelCase__						= "0094702343221"

  print(is_sri_lankan_phone_number(phone))
