


import os
import zipfile

import requests
from get_ci_error_statistics import download_artifact, get_artifacts_links







def 						lowerCamelCase(   a__	,a__=7):
				_SCREAMING_SNAKE_CASE			  =None
				if token is not None:
								_SCREAMING_SNAKE_CASE			  ={'''Accept''': '''application/vnd.github+json''', '''Authorization''': f"Bearer {token}"}

				# The id of a workflow (not of a workflow run)
				_SCREAMING_SNAKE_CASE			  ='''636036'''

				_SCREAMING_SNAKE_CASE			  =f"https://api.github.com/repos/huggingface/transformers/actions/workflows/{workflow_id}/runs"
				# On `main` branch + event being `schedule` + not returning PRs + only `num_runs` results
				url += f"?branch=main&event=schedule&exclude_pull_requests=true&per_page={num_runs}"

				_SCREAMING_SNAKE_CASE			  =requests.get(a__	,headers=a__).json()

				return result["workflow_runs"]







def 						lowerCamelCase(   a__):
				_SCREAMING_SNAKE_CASE			  =get_daily_ci_runs(a__)
				_SCREAMING_SNAKE_CASE			  =None
				for workflow_run in workflow_runs:
								if workflow_run["status"] == "completed":
												_SCREAMING_SNAKE_CASE			  =workflow_run['''id''']
												break

				return workflow_run_id







def 						lowerCamelCase(   a__	,a__	,a__):
				_SCREAMING_SNAKE_CASE			  =get_last_daily_ci_runs(a__)
				if workflow_run_id is not None:
								_SCREAMING_SNAKE_CASE			  =get_artifacts_links(worflow_run_id=a__	,token=a__)
								for artifact_name in artifact_names:
												if artifact_name in artifacts_links:
																_SCREAMING_SNAKE_CASE			  =artifacts_links[artifact_name]
																download_artifact(
																    artifact_name=a__	,artifact_url=a__	,output_dir=a__	,token=a__)







def 						lowerCamelCase(   a__	,a__	,a__):
				get_last_daily_ci_artifacts(a__	,a__	,a__)

				_SCREAMING_SNAKE_CASE			  ={}
				for artifact_name in artifact_names:
								_SCREAMING_SNAKE_CASE			  =os.path.join(a__	,f"{artifact_name}.zip")
								if os.path.isfile(a__):
												_SCREAMING_SNAKE_CASE			  ={}
												with zipfile.ZipFile(a__) as z:
																for filename in z.namelist():
																				if not os.path.isdir(a__):
																								# read the file
																								with z.open(a__) as f:
																												_SCREAMING_SNAKE_CASE			  =f.read().decode('''UTF-8''')

				return results



from collections.abc import Generator







def 						lowerCamelCase(   ):
				_SCREAMING_SNAKE_CASE  ,				_SCREAMING_SNAKE_CASE			  =0, 1
				while True:
								_SCREAMING_SNAKE_CASE  ,				_SCREAMING_SNAKE_CASE			  =b, a + b
								yield b







def 						lowerCamelCase(   a__ = 1000):
				_SCREAMING_SNAKE_CASE			  =1
				_SCREAMING_SNAKE_CASE			  =fibonacci_generator()
				while len(str(next(a__))) < n:
								answer += 1
				return answer + 1


if __name__ == "__main__":
							print(solution(int(str(input()).strip())))