
def 		UpperCamelCase						(   lowercase_ )		->						int:


  '''simple docstring'''






  lowercase__	: Optional[int]     		=   0
  while num > 0:
    digit_sum += num % 10
    num //= 10
  return digit_sum

def 		UpperCamelCase						(   lowercase_ = 1_00 )		->						int:


  '''simple docstring'''






  lowercase__	: List[Any]     		=   1
  lowercase__	: str     		=   2

  for i in range(2			,			max_n + 1 ):
    lowercase__	: Optional[Any]     		=   pre_numerator
    lowercase__	: Optional[Any]     		=   2 * i // 3 if i % 3 == 0 else 1
    lowercase__	: Any     		=   cur_numerator
    lowercase__	: Optional[Any]     		=   e_cont * pre_numerator + temp

  return sum_digits(lowercase_ )


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








"""simple docstring"""

from math import asin, atan, cos, radians, sin, sqrt, tan

SCREAMING_SNAKE_CASE_            =    6_3_7_8_1_3_7.0
SCREAMING_SNAKE_CASE_            =    6_3_5_6_7_5_2.3_1_4_2_4_5
SCREAMING_SNAKE_CASE_            =    637_8137




def      lowercase__    (       lowerCAmelCase					:       float			,					lowerCAmelCase					:       float			,					lowerCAmelCase					:       float			,					lowerCAmelCase					:       float			)			->   float:






    """simple docstring"""




    UpperCAmelCase          =       (AXIS_A - AXIS_B) / AXIS_A
    UpperCAmelCase          =       atan((1 - flattening) * tan(radians(lowerCAmelCase			)			)			)
    UpperCAmelCase          =       atan((1 - flattening) * tan(radians(lowerCAmelCase			)			)			)
    UpperCAmelCase          =       radians(lowerCAmelCase			)
    UpperCAmelCase          =       radians(lowerCAmelCase			)
    # Equation
    UpperCAmelCase          =       sin((phi_a - phi_a) / 2			)
    UpperCAmelCase          =       sin((lambda_a - lambda_a) / 2			)
    # Square both values
    sin_sq_phi *= sin_sq_phi
    sin_sq_lambda *= sin_sq_lambda
    UpperCAmelCase          =       sqrt(sin_sq_phi + (cos(lowerCAmelCase			) * cos(lowerCAmelCase			) * sin_sq_lambda)			)
    return 2 * RADIUS * asin(lowerCAmelCase			)


if __name__ == "__main__":
   import doctest

   doctest.testmod()



