






import unittest

from diffusers.pipelines.pipeline_utils import is_safetensors_compatible







class 				UpperCAmelCase_  (		unittest.TestCase		):




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  Any				      =			[
              """safety_checker/pytorch_model.bin""",
              """safety_checker/model.safetensors""",
              """vae/diffusion_pytorch_model.bin""",
              """vae/diffusion_pytorch_model.safetensors""",
              """text_encoder/pytorch_model.bin""",
              """text_encoder/model.safetensors""",
              """unet/diffusion_pytorch_model.bin""",
              """unet/diffusion_pytorch_model.safetensors""",
          ]
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  Union[str, Any]				      =			[
              """unet/diffusion_pytorch_model.bin""",
              """unet/diffusion_pytorch_model.safetensors""",
          ]
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  int				      =			[
              """safety_checker/pytorch_model.bin""",
              """safety_checker/model.safetensors""",
              """vae/diffusion_pytorch_model.bin""",
              """vae/diffusion_pytorch_model.safetensors""",
              """text_encoder/pytorch_model.bin""",
              """text_encoder/model.safetensors""",
              """unet/diffusion_pytorch_model.bin""",
              # Removed: 'unet/diffusion_pytorch_model.safetensors',
          ]
          self.assertFalse(is_safetensors_compatible(_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  Any				      =			[
              """text_encoder/pytorch_model.bin""",
              """text_encoder/model.safetensors""",
          ]
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  int				      =			[
              """safety_checker/pytorch_model.bin""",
              """safety_checker/model.safetensors""",
              """vae/diffusion_pytorch_model.bin""",
              """vae/diffusion_pytorch_model.safetensors""",
              """text_encoder/pytorch_model.bin""",
              # Removed: 'text_encoder/model.safetensors',
              """unet/diffusion_pytorch_model.bin""",
              """unet/diffusion_pytorch_model.safetensors""",
          ]
          self.assertFalse(is_safetensors_compatible(_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  List[Any]				      =			[
              """safety_checker/pytorch_model.fp16.bin""",
              """safety_checker/model.fp16.safetensors""",
              """vae/diffusion_pytorch_model.fp16.bin""",
              """vae/diffusion_pytorch_model.fp16.safetensors""",
              """text_encoder/pytorch_model.fp16.bin""",
              """text_encoder/model.fp16.safetensors""",
              """unet/diffusion_pytorch_model.fp16.bin""",
              """unet/diffusion_pytorch_model.fp16.safetensors""",
          ]
          UpperCAmelCase__      :  Optional[Any]				      =			"""fp16"""
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase	,						variant=_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  Any				      =			[
              """unet/diffusion_pytorch_model.fp16.bin""",
              """unet/diffusion_pytorch_model.fp16.safetensors""",
          ]
          UpperCAmelCase__      :  Dict				      =			"""fp16"""
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase	,						variant=_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          # pass variant but use the non-variant filenames
          UpperCAmelCase__      :  int				      =			[
              """unet/diffusion_pytorch_model.bin""",
              """unet/diffusion_pytorch_model.safetensors""",
          ]
          UpperCAmelCase__      :  Optional[Any]				      =			"""fp16"""
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase	,						variant=_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  List[str]				      =			[
              """safety_checker/pytorch_model.fp16.bin""",
              """safety_checker/model.fp16.safetensors""",
              """vae/diffusion_pytorch_model.fp16.bin""",
              """vae/diffusion_pytorch_model.fp16.safetensors""",
              """text_encoder/pytorch_model.fp16.bin""",
              """text_encoder/model.fp16.safetensors""",
              """unet/diffusion_pytorch_model.fp16.bin""",
              # Removed: 'unet/diffusion_pytorch_model.fp16.safetensors',
          ]
          UpperCAmelCase__      :  Union[str, Any]				      =			"""fp16"""
          self.assertFalse(is_safetensors_compatible(_lowerCAmelCase	,						variant=_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  List[str]				      =			[
              """text_encoder/pytorch_model.fp16.bin""",
              """text_encoder/model.fp16.safetensors""",
          ]
          UpperCAmelCase__      :  Any				      =			"""fp16"""
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase	,						variant=_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          # pass variant but use the non-variant filenames
          UpperCAmelCase__      :  List[Any]				      =			[
              """text_encoder/pytorch_model.bin""",
              """text_encoder/model.safetensors""",
          ]
          UpperCAmelCase__      :  Union[str, Any]				      =			"""fp16"""
          self.assertTrue(is_safetensors_compatible(_lowerCAmelCase	,						variant=_lowerCAmelCase		)		)




     def   __UpperCAmelCase  (				self		):
          UpperCAmelCase__      :  List[str]				      =			[
              """safety_checker/pytorch_model.fp16.bin""",
              """safety_checker/model.fp16.safetensors""",
              """vae/diffusion_pytorch_model.fp16.bin""",
              """vae/diffusion_pytorch_model.fp16.safetensors""",
              """text_encoder/pytorch_model.fp16.bin""",
              # 'text_encoder/model.fp16.safetensors',
              """unet/diffusion_pytorch_model.fp16.bin""",
              """unet/diffusion_pytorch_model.fp16.safetensors""",
          ]
          UpperCAmelCase__      :  int				      =			"""fp16"""
          self.assertFalse(is_safetensors_compatible(_lowerCAmelCase	,						variant=_lowerCAmelCase		)		)













"""simple docstring"""


from math import ceil, sqrt

def      UpperCamelCase							(SCREAMING_SNAKE_CASE = 100_0000     ):
						UpperCamelCase				:		int				   =			0

						for outer_width in range(3							,     (limit // 4) + 2     ):
												if outer_width**2 > limit:
																		UpperCamelCase				:		Optional[Any]				   =			max(ceil(sqrt(outer_width**2 - limit     )     )							,     1     )
												else:
																		UpperCamelCase				:		str				   =			1
												if (outer_width - hole_width_lower_bound) % 2:
																		hole_width_lower_bound += 1

												answer += (outer_width - hole_width_lower_bound - 2) // 2 + 1

						return answer


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



