



'''simple docstring'''


from math import ceil







def 				__lowerCamelCase				(   A__ = 1_001    )       ->	int:






   """simple docstring"""
   UpperCamelCase					=  1

   for i in range(1    ,						int(ceil(n / 2.0    )    )    ):
      UpperCamelCase					=  2 * i + 1
      UpperCamelCase					=  2 * i
      UpperCamelCase					=  total + 4 * odd**2 - 6 * even

   return total


if __name__ == "__main__":
   import sys

   if len(sys.argv) == 1:
      print(solution())
   else:
      try:
         _lowerCamelCase	:       Optional[Any]      	=	int(sys.argv[1])
         print(solution(n))
      except ValueError:
         print("Invalid entry - please enter a number")






'''simple docstring'''


def 				__lowerCamelCase				(   A__ = 10**9    )       ->	int:






   """simple docstring"""
   UpperCamelCase					=  1
   UpperCamelCase					=  2

   UpperCamelCase					=  0
   UpperCamelCase					=  0
   UpperCamelCase					=  0
   while perimeter <= max_perimeter:
      perimeters_sum += perimeter

      prev_value += 2 * value
      value += prev_value

      UpperCamelCase					=  2 * value + 2 if i % 2 == 0 else 2 * value - 2
      i += 1

   return perimeters_sum


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

