




import re



def       UpperCAmelCase__  (     lowerCamelCase   ):
  lowercase    :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(lowerCamelCase,			lowerCamelCase   )   )


if __name__ == "__main__":
     _UpperCAmelCase	:						Optional[int]			=     "0094702343221"

     print(is_sri_lankan_phone_number(phone))










def       UpperCAmelCase__  (     lowerCamelCase,			lowerCamelCase   ):
  if discount_rate < 0:
    raise ValueError("Discount rate cannot be negative"   )
  if not cash_flows:
    raise ValueError("Cash flows list cannot be empty"   )
  lowercase    :Dict      	=						sum(
      cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(lowerCamelCase   )   )
  return round(lowerCamelCase,			ndigits=2   )


if __name__ == "__main__":
     import doctest

     doctest.testmod()



