





def        _a						(    UpperCAmelCase = 10**9     )				->				Dict:







   """simple docstring"""
   lowerCamelCase__   :						Dict					   =							1
   lowerCamelCase__   :						str					   =							2

   lowerCamelCase__   :						str					   =							0
   lowerCamelCase__   :						str					   =							0
   lowerCamelCase__   :						Tuple					   =							0
   while perimeter <= max_perimeter:
      perimeters_sum += perimeter

      prev_value += 2 * value
      value += prev_value

      lowerCamelCase__   :						List[str]					   =							2 * value + 2 if i % 2 == 0 else 2 * value - 2
      i += 1

   return perimeters_sum


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




import math
def       A	(    _lowercase						):
						return math.sqrt(_lowercase						) * math.sqrt(_lowercase						) == num
def       A	(    _lowercase						):
						SCREAMING_SNAKE_CASE							:    Dict							=							0
						SCREAMING_SNAKE_CASE							:    Tuple							=							n
						while left <= right:
												SCREAMING_SNAKE_CASE							:    Union[str, Any]							=							(left + right) // 2
												if mid**2 == n:
																		return True
												elif mid**2 > n:
																		SCREAMING_SNAKE_CASE							:    Optional[Any]							=							mid - 1
												else:
																		SCREAMING_SNAKE_CASE							:    Optional[int]							=							mid + 1
						return False


if __name__ == "__main__":
					import doctest

					doctest.testmod()





