
'''simple docstring'''


import enum
import shutil
import sys


__lowercase ,						__lowercase							:      Optional[Any]		 =   shutil.get_terminal_size()

__lowercase							:      List[Any]		 =   {'''UP''': '''A''', '''DOWN''': '''B''', '''RIGHT''': '''C''', '''LEFT''': '''D'''}

class 		__lowercase (     enum.Enum			):
			lowerCamelCase	:						int							=	0
			lowerCamelCase	:						Tuple							=	1




def lowercase_		(      _lowercase	,				_lowercase="" )   ->							str:
					'''simple docstring'''

					sys.stdout.write(str(__UpperCamelCase ) + end )
					sys.stdout.flush()




def lowercase_		(      _lowercase	,				_lowercase	,				_lowercase="" )   ->							Optional[int]:
					'''simple docstring'''

					forceWrite(F"""\u001b[{color}m{content}\u001b[0m"""	,				__UpperCamelCase )




def lowercase_		(      )   ->							List[str]:
					'''simple docstring'''

					forceWrite('''\r''' )




def lowercase_		(      _lowercase	,				_lowercase )   ->							Any:
					'''simple docstring'''

					forceWrite(F"""\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}""" )




def lowercase_		(      )   ->							Any:
					'''simple docstring'''

					forceWrite(''' ''' * TERMINAL_WIDTH )
					reset_cursor()






def lowercase_		(      )   ->							Union[str, Any]:
					'''simple docstring'''

					reset_cursor()
					forceWrite('''-''' * TERMINAL_WIDTH )










"""simple docstring"""


from collections import defaultdict
from math import ceil, sqrt



def 					lowerCAmelCase				(    __UpperCamelCase = 1_0_0_0_0_0_0		,       __UpperCamelCase = 1_0 ):




  """simple docstring"""







  __A									= defaultdict(__UpperCamelCase )

  for outer_width in range(3		,       (t_limit // 4) + 2 ):
    if outer_width * outer_width > t_limit:
      __A									= max(
          ceil(sqrt(outer_width * outer_width - t_limit ) )		,       1 )
    else:
      __A									= 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 <= 1_0 )


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




