





'''simple docstring'''

def  _a     (				lowerCAmelCase_ = 1_000						):





      """simple docstring"""



      _snake_case		:						str         =  0
      _snake_case		:						Dict         =  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




def  _a     (				lowerCAmelCase_						):





      """simple docstring"""



      _snake_case		:						List[str]         =  sorted(lowerCAmelCase_						)
      _snake_case		:						Any         =  len(lowerCAmelCase_						)
      _snake_case		:						List[str]         =  length >> 1
      return (
          (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
          if length % 2 == 0
          else sorted_list[mid_index]
      )




def  _a     (				):





      """simple docstring"""



      import doctest

      doctest.testmod()


if __name__ == "__main__":
   main()


