



"""simple docstring"""







import importlib.metadata
import subprocess
import sys


def  __SCREAMING_SNAKE_CASE (  __UpperCAmelCase = False      ):
		_lowercase				: int     =   False
		if "IPython" in sys.modules:
				_lowercase				: Union[str, Any]     =   """google.colab""" in str(sys.modules["""IPython"""].get_ipython()      )

		if in_colab:
				if upgrade:
						_lowercase				: Any     =   ["""pip""", """install""", """-U""", """torch"""]
						subprocess.run(__UpperCAmelCase   ,				check=__UpperCAmelCase      )
				# get the current version of torch
				_lowercase				: Union[str, Any]     =   importlib.metadata.version("""torch"""      )
				_lowercase				: List[Any]     =   torch_version[: torch_version.rindex("""."""      )]
				_lowercase				: Any     =   F"""https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-{torch_version_trunc}-cp37-cp37m-linux_x86_64.whl"""
				_lowercase				: Tuple     =   ["""pip""", """install""", xla_wheel]
				subprocess.run(__UpperCAmelCase   ,				check=__UpperCAmelCase      )
		else:
				raise RuntimeError("""`install_xla` utility works only on google colab."""      )








"""simple docstring"""







from math import factorial


def  __SCREAMING_SNAKE_CASE (  __UpperCAmelCase   ,				__UpperCAmelCase      ):
		return factorial(__UpperCAmelCase      ) / (factorial(__UpperCAmelCase      ) * factorial(n - r      ))


def  __SCREAMING_SNAKE_CASE (  ):
		_lowercase				: Optional[Any]     =   0

		for i in range(1   ,				101      ):
				for j in range(1   ,				i + 1      ):
						if combinations(__UpperCAmelCase   ,				__UpperCAmelCase      ) > 1E6:
								total += 1
		return total


if __name__ == "__main__":
		print(solution())



