





"""simple docstring"""


import inspect
import os
import sys
import unittest

import accelerate
from accelerate.test_utils import execute_subprocess_async, require_tpu



class      __SCREAMING_SNAKE_CASE    (						unittest.TestCase   ):







  '''simple docstring'''


  def    __SCREAMING_SNAKE_CASE				(		self   :       Tuple	)		->				Dict:
        _UpperCamelCase      :	int						=       inspect.getfile(accelerate.test_utils	)
        _UpperCamelCase      :	List[str]						=       os.path.sep.join(mod_file.split(os.path.sep	)[:-1] + ["scripts", "test_script.py"]	)
        _UpperCamelCase      :	str						=       os.path.sep.join(inspect.getfile(self.__class__	).split(os.path.sep	)[:-1]	)


  @require_tpu
  def    __SCREAMING_SNAKE_CASE				(		self   :       Any	)		->				Any:
        _UpperCamelCase      :	int						=       F'''
            {self.test_dir}/xla_spawn.py
            --num_cores 8
            {self.test_file_path}
        '''.split()
        _UpperCamelCase      :	Optional[int]						=       [sys.executable] + distributed_args
        execute_subprocess_async(__a					,   env=os.environ.copy()	)







"""simple docstring"""


from collections import defaultdict
from math import ceil, sqrt




def 					lowercase__    (					lowercase_ = 1_000_000		,lowercase_ = 10			)					->		int:




      """simple docstring"""

      _UpperCamelCase      :	defaultdict						=       defaultdict(lowercase_			)

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

            hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

            for hole_width in range(lowercase_		,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() = }""")
