"""simple docstring"""
import doctest
import sys
import warnings
from os.path import abspath, dirname, join

import _pytest

from transformers.testing_utils import HfDoctestModule, HfDocTestParser


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
lowercase__ 	=     abspath(join(dirname(__file__), 'src'))
sys.path.insert(1, git_repo_path)

# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='ignore', category=FutureWarning)







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[int]:
		config.addinivalue_line(
		    'markers'		,					'is_pt_tf_cross_test: mark test to run only when PT and TF interactions are tested'       )
		config.addinivalue_line(
		    'markers'		,					'is_pt_flax_cross_test: mark test to run only when PT and FLAX interactions are tested'       )
		config.addinivalue_line('markers'		,					'is_pipeline_test: mark test to run only when pipelines are tested'       )
		config.addinivalue_line('markers'		,					'is_staging_test: mark test to run only in the staging environment'       )
		config.addinivalue_line('markers'		,					'accelerate_tests: mark test that require accelerate'       )
		config.addinivalue_line('markers'		,					'tool_tests: mark the tool tests that are run on their specific schedule'       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Optional[int]:
		from transformers.testing_utils import pytest_addoption_shared

		pytest_addoption_shared(_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->Union[str, Any]:
		from transformers.testing_utils import pytest_terminal_summary_main

		a__:					int      							=     terminalreporter.config.getoption('--make-reports'       )
		if make_reports:
				pytest_terminal_summary_main(_SCREAMING_SNAKE_CASE		,					id=_SCREAMING_SNAKE_CASE       )







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )     ->List[str]:
		# If no tests are collected, pytest exists with code 5, which makes the CI fail.
		if exitstatus == 5:
				a__:					Optional[Any]      							=     0


# Doctest custom flag to ignore output.
lowercase__ 	=     doctest.register_optionflag('IGNORE_RESULT')

lowercase__ 	=     doctest.OutputChecker




class        __snake_case	(					__lowerCAmelCase    ):



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





								'''simple docstring'''





								if IGNORE_RESULT & optionflags:
										return True
								return OutputChecker.check_output(self   ,      lowercase   ,      lowercase   ,      lowercase)







lowercase__ 	=     CustomOutputChecker
lowercase__ 	=     HfDoctestModule


lowercase__ 	=     HfDocTestParser



"""simple docstring"""
def 						__a       (     _SCREAMING_SNAKE_CASE = 1000000       )     ->int:
  a__:					Any      							=     limit + 1
  a__:					List[str]      							=     [0] * limit
  for first_term in range(1		,					_SCREAMING_SNAKE_CASE       ):
    for n in range(_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       ):
      a__:					Any      							=     first_term + n / first_term
      if common_difference % 4:  # d must be divisble by 4
        continue
      else:
        common_difference /= 4
        if (
            first_term > common_difference
            and first_term < 4 * common_difference
        ):  # since x,y,z are positive integers
          frequency[n] += 1  # so z>0 and a>d ,also 4d<a

  a__:					Optional[int]      							=     sum(1 for x in frequency[1:limit] if x == 10       )

  return count


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


