



"""simple docstring"""







import os

from apache_beam.io.filesystems import FileSystems
from apache_beam.pipeline import Pipeline

from .logging import get_logger


__snake_case	:				str  					=			2 << 20  # 2mb
__snake_case	:				int  					=			get_logger(__name__)

class       UpperCamelCase  (					a__				):





     """simple docstring"""






     def 						A__  (					self :							int ):
          A__				=   self._options.get_all_options().get('''runner''' )
          return runner in [None, "DirectRunner", "PortableRunner"]



def   a_	(			__a		,							__a		,							__a=False      ):
     A__				=   FileSystems
     if fs.exists(snake_case__      ):
          if force_upload:
               logger.info(f'''Remote path already exist: {remote_file_path}. Overwriting it as force_upload=True.'''      )
          else:
               logger.info(f'''Remote path already exist: {remote_file_path}. Skipping it as force_upload=False.'''      )
               return
     with fs.create(snake_case__      ) as remote_file:
          with open(snake_case__		,							'''rb'''      ) as local_file:
               A__				=   local_file.read(snake_case__      )
               while chunk:
                    remote_file.write(snake_case__      )
                    A__				=   local_file.read(snake_case__      )



def   a_	(			__a		,							__a		,							__a=False      ):
     A__				=   FileSystems
     if os.path.exists(snake_case__      ):
          if force_download:
               logger.info(f'''Local path already exist: {remote_file_path}. Overwriting it as force_upload=True.'''      )
          else:
               logger.info(f'''Local path already exist: {remote_file_path}. Skipping it as force_upload=False.'''      )
               return
     with fs.open(snake_case__      ) as remote_file:
          with open(snake_case__		,							'''wb'''      ) as local_file:
               A__				=   remote_file.read(snake_case__      )
               while chunk:
                    local_file.write(snake_case__      )
                    A__				=   remote_file.read(snake_case__      )










"""simple docstring"""







from math import factorial



def   a_	(			__a		,							__a      ):
     return factorial(__a      ) / (factorial(__a      ) * factorial(n - r      ))



def   a_	(			):
     A__				=   0

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


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



