





import unittest

from diffusers.pipelines.pipeline_utils import is_safetensors_compatible



class    _SCREAMING_SNAKE_CASE						(	unittest.TestCase    ):







 '''simple docstring'''

 def 							SCREAMING_SNAKE_CASE_					(self				:   Optional[int])       ->Any:



   '''simple docstring'''



   lowerCamelCase__:      List[str]			  =[
       """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(_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   str)       ->str:



   '''simple docstring'''



   lowerCamelCase__:      List[Any]			  =[
       """unet/diffusion_pytorch_model.bin""",
       """unet/diffusion_pytorch_model.safetensors""",
   ]
   self.assertTrue(is_safetensors_compatible(_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   Optional[Any])       ->Any:



   '''simple docstring'''



   lowerCamelCase__:      Dict			  =[
       """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(_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   Tuple)       ->Union[str, Any]:



   '''simple docstring'''



   lowerCamelCase__:      Dict			  =[
       """text_encoder/pytorch_model.bin""",
       """text_encoder/model.safetensors""",
   ]
   self.assertTrue(is_safetensors_compatible(_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   str)       ->Optional[int]:



   '''simple docstring'''



   lowerCamelCase__:      Optional[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(_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   str)       ->Any:



   '''simple docstring'''



   lowerCamelCase__:      Dict			  =[
       """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""",
   ]
   lowerCamelCase__:      int			  ="""fp16"""
   self.assertTrue(is_safetensors_compatible(_SCREAMING_SNAKE_CASE       , variant=_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   Union[str, Any])       ->str:



   '''simple docstring'''



   lowerCamelCase__:      Union[str, Any]			  =[
       """unet/diffusion_pytorch_model.fp16.bin""",
       """unet/diffusion_pytorch_model.fp16.safetensors""",
   ]
   lowerCamelCase__:      Optional[Any]			  ="""fp16"""
   self.assertTrue(is_safetensors_compatible(_SCREAMING_SNAKE_CASE       , variant=_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   List[str])       ->List[Any]:



   '''simple docstring'''



   lowerCamelCase__:      Dict			  =[
       """unet/diffusion_pytorch_model.bin""",
       """unet/diffusion_pytorch_model.safetensors""",
   ]
   lowerCamelCase__:      Any			  ="""fp16"""
   self.assertTrue(is_safetensors_compatible(_SCREAMING_SNAKE_CASE       , variant=_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   List[Any])       ->Optional[Any]:



   '''simple docstring'''



   lowerCamelCase__:      Optional[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""",
       # Removed: 'unet/diffusion_pytorch_model.fp16.safetensors',
   ]
   lowerCamelCase__:      Any			  ="""fp16"""
   self.assertFalse(is_safetensors_compatible(_SCREAMING_SNAKE_CASE       , variant=_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   List[str])       ->str:



   '''simple docstring'''



   lowerCamelCase__:      str			  =[
       """text_encoder/pytorch_model.fp16.bin""",
       """text_encoder/model.fp16.safetensors""",
   ]
   lowerCamelCase__:      str			  ="""fp16"""
   self.assertTrue(is_safetensors_compatible(_SCREAMING_SNAKE_CASE       , variant=_SCREAMING_SNAKE_CASE))

 def 							SCREAMING_SNAKE_CASE_					(self				:   Optional[Any])       ->int:



   '''simple docstring'''



   lowerCamelCase__:      Tuple			  =[
       """text_encoder/pytorch_model.bin""",
       """text_encoder/model.safetensors""",
   ]
   lowerCamelCase__:      Dict			  ="""fp16"""
   self.assertTrue(is_safetensors_compatible(_SCREAMING_SNAKE_CASE       , variant=_SCREAMING_SNAKE_CASE))







 def 							SCREAMING_SNAKE_CASE_					(self				:   Union[str, Any])       ->Any:



   '''simple docstring'''



   lowerCamelCase__:      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""",
   ]
   lowerCamelCase__:      Optional[int]			  ="""fp16"""
   self.assertFalse(is_safetensors_compatible(_SCREAMING_SNAKE_CASE       , variant=_SCREAMING_SNAKE_CASE))






"""simple docstring"""
from collections import defaultdict
from math import ceil, sqrt

def       _snake_case						(						UpperCamelCase						:		int = 1000000			,		UpperCamelCase						:		int = 10						):
 UpperCAmelCase	:					defaultdict	=	defaultdict(UpperCamelCase						)

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

  hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

  for hole_width in range(UpperCamelCase			,		outer_width - 1			,		2						):
   count[outer_width * outer_width - hole_width * hole_width] += 1

 return sum(1 for n in count.values() if 1 <= n <= 10						)


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