"""simple docstring"""






def SCREAMING_SNAKE_CASE__    (     __UpperCAmelCase ,					__UpperCAmelCase				)						->						list[tuple[int, int, int]]:
   lowercase__:     Optional[int]      =   sorted(__UpperCAmelCase ,					key=lambda __UpperCAmelCase				: edge[2]				)

   lowercase__:     Dict      =   list(range(__UpperCAmelCase				)				)

   def find_parent(__UpperCAmelCase				):
      if i != parent[i]:
         lowercase__:     str      =   find_parent(parent[i]				)
      return parent[i]

   lowercase__:     Any      =   0
   lowercase__:     Optional[int]      =   []

   for edge in edges:
      lowercase__:     Dict      =   find_parent(edge[0]				)
      lowercase__:     Union[str, Any]      =   find_parent(edge[1]				)
      if parent_a != parent_b:
         minimum_spanning_tree_cost += edge[2]
         minimum_spanning_tree.append(__UpperCAmelCase				)
         lowercase__:     Any      =   parent_b

   return minimum_spanning_tree


if __name__ == "__main__":  # pragma: no cover
       __A     ,__A         =				list(map(int, input().strip().split()))
       __A         =				[]

       for _ in range(num_edges):
              __A     ,__A     ,__A         =				(int(x) for x in input().strip().split())
              edges.append((nodea, nodea, cost))

       kruskal(num_nodes, edges)

"""simple docstring"""






def SCREAMING_SNAKE_CASE__    (     __UpperCAmelCase = 1_0_0_0				)						->						int:
   lowercase__:     Union[str, Any]      =   0
   lowercase__:     Any      =   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() = }''')
