
'''simple docstring'''

from math import ceil


def 						_UpperCAmelCase					(	_lowerCamelCase    :							int = 10_01		)     ->    str:
  _lowerCAmelCase							:	Any 					=       1

  for i in range(1	,   int(ceil(n / 2.0		)		)		):
    _lowerCAmelCase							:	Optional[int] 					=       2 * i + 1
    _lowerCAmelCase							:	List[Any] 					=       2 * i
    _lowerCAmelCase							:	int 					=       total + 4 * odd**2 - 6 * even

  return total


if __name__ == "__main__":
     import sys

     if len(sys.argv) == 1:
          print(solution())
     else:
          try:
               UpperCamelCase_        =							int(sys.argv[1])
               print(solution(n))
          except ValueError:
               print("""Invalid entry - please enter a number""")





'''simple docstring'''

from collections import defaultdict
from math import gcd

def 					__UpperCamelCase				(						lowercase__    :	int = 1_50_00_00			):






     '''simple docstring'''





     __lowercase      		=defaultdict(lowercase__			)
     __lowercase      		=2
     while 2 * euclid_m * (euclid_m + 1) <= limit:
          for euclid_n in range((euclid_m % 2) + 1,       lowercase__,       2			):
               if gcd(lowercase__,       lowercase__			) > 1:
                    continue
               __lowercase      		=2 * euclid_m * (euclid_m + euclid_n)
               for perimeter in range(lowercase__,       limit + 1,       lowercase__			):
                    frequencies[perimeter] += 1
          euclid_m += 1
     return sum(1 for frequency in frequencies.values() if frequency == 1			)


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


