


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()






def 			_a (      SCREAMING_SNAKE_CASE						,				SCREAMING_SNAKE_CASE						,				SCREAMING_SNAKE_CASE     ):


		"""simple docstring"""




		if exponent == 1:
				return base
		if exponent % 2 == 0:
				lowercase__            =      _modexpt(SCREAMING_SNAKE_CASE						,				exponent // 2						,				SCREAMING_SNAKE_CASE     ) % modulo_value
				return (x * x) % modulo_value
		else:
				return (base * _modexpt(SCREAMING_SNAKE_CASE						,				exponent - 1						,				SCREAMING_SNAKE_CASE     )) % modulo_value
def 			_a (      SCREAMING_SNAKE_CASE = 17_77						,				SCREAMING_SNAKE_CASE = 18_55						,				SCREAMING_SNAKE_CASE = 8     ):


		"""simple docstring"""




		lowercase__            =      base
		for _ in range(1						,				SCREAMING_SNAKE_CASE     ):
				lowercase__            =      _modexpt(SCREAMING_SNAKE_CASE						,				SCREAMING_SNAKE_CASE						,				10**digits     )

		return result


if __name__ == "__main__":
			print(f"""{solution() = }""")


