"""simple docstring"""







def 			A__						(  lowercase_    :  int = 1000	)     ->       int:
   __lowerCamelCase								=				0
   __lowerCamelCase								=				0
   while 1:
      num += 3
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
   return total


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







"""simple docstring"""







from __future__ import annotations

from collections.abc import Callable



def 			A__						(  lowercase_    :  Callable[[int | float], int | float]			,   lowercase_    :  int | float			,   lowercase_    :  int | float			,   lowercase_    :  int = 100			,   )     ->       float:
   __lowerCamelCase								=				x_start
   __lowerCamelCase								=				fnc(lowercase_	)
   __lowerCamelCase								=				0.0

   for _ in range(lowercase_	):
      # Approximates small segments of curve as linear and solve
      # for trapezoidal area
      __lowerCamelCase								=				(x_end - x_start) / steps + xa
      __lowerCamelCase								=				fnc(lowercase_	)
      area += abs(fxa + fxa	) * (xa - xa) / 2

      # Increment step
      __lowerCamelCase								=				xa
      __lowerCamelCase								=				fxa
   return area


if __name__ == "__main__":



     def 			A__						(  lowercase_    :  Union[str, Any]	)     ->       int:
        return x**3

     print('''f(x) = x^3''')
     print('''The area between the curve, x = -10, x = 10 and the x axis is:''')
     _SCREAMING_SNAKE_CASE  :		Any        =      1_0
     while i <= 1_0_0_0_0_0:
          _SCREAMING_SNAKE_CASE  :		List[str]        =      trapezoidal_area(f, -5, 5, i)
          print(F"with {i} steps: {area}")
          i *= 1_0






