


def 			_a (      SCREAMING_SNAKE_CASE = 3						,				SCREAMING_SNAKE_CASE = 7						,				SCREAMING_SNAKE_CASE = 1_00_00_00     ):


		"""simple docstring"""




		lowercase__            =      0
		lowercase__            =      1

		for current_denominator in range(1						,				limit + 1     ):
				lowercase__            =      current_denominator * numerator // denominator
				if current_denominator % denominator == 0:
						current_numerator -= 1
				if current_numerator * max_denominator > current_denominator * max_numerator:
						lowercase__            =      current_numerator
						lowercase__            =      current_denominator
		return max_numerator


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






import socket
def 			_a (      ):


		"""simple docstring"""




		lowercase__            =      socket.socket(socket.AF_INET						,				socket.SOCK_STREAM     )
		lowercase__            =      socket.gethostname()
		lowercase__            =      1_23_12

		sock.connect((host, port)     )
		sock.send(B'''Hello server!'''     )

		with open('''Received_file'''						,				'''wb'''     ) as out_file:
				print('''File opened'''     )
				print('''Receiving data...'''     )
				while True:
						lowercase__            =      sock.recv(10_24     )
						if not data:
								break
						out_file.write(SCREAMING_SNAKE_CASE     )

		print('''Successfully received the file'''     )
		sock.close()
		print('''Connection closed'''     )


if __name__ == "__main__":
			main()


