





from collections import defaultdict
from math import ceil, sqrt


def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase = 1_000_000    ,       lowerCAmelCase = 10					):
       _UpperCamelCase              =						defaultdict(lowerCAmelCase					)

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

              hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

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













def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase					):
       _UpperCamelCase              =						0
       for ch in input_str:
              _UpperCamelCase              =						ord(lowerCAmelCase					)
              _UpperCamelCase              =						pow(2    ,       lowerCAmelCase					)

              # If we already turned on bit for current character's unicode
              if bitmap >> ch_unicode & 1 == 1:
                     return False
              bitmap |= ch_bit_index_on
       return True


if __name__ == "__main__":
       import doctest

       doctest.testmod()






