

"""simple docstring"""






def   lowercase_	(    _lowercase       :		int = 3							,      _lowercase       :		int = 7							,      _lowercase       :		int = 1_00_00_00	):




					'''simple docstring'''






					UpperCAmelCase			:   Union[str, Any]      =				0
					UpperCAmelCase			:   Optional[int]      =				1

					for current_denominator in range(1							,      limit + 1	):
										UpperCAmelCase			:   str      =				current_denominator * numerator // denominator
										if current_denominator % denominator == 0:
															current_numerator -= 1
										if current_numerator * max_denominator > current_denominator * max_numerator:
															UpperCAmelCase			:   Union[str, Any]      =				current_numerator
															UpperCAmelCase			:   int      =				current_denominator
					return max_numerator


if __name__ == "__main__":
	print(solution(numerator=3, denominator=7, limit=1_0_0_0_0_0_0))





"""simple docstring"""






import os



def   lowercase_	(    ):




					'''simple docstring'''






					UpperCAmelCase			:   Union[str, Any]      =				os.path.join(os.path.dirname(_lowercase	)							,      "num.txt"	)
					with open(_lowercase	) as file_hand:
										return str(sum(int(_lowercase	) for line in file_hand	)	)[:10]


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


