"""simple docstring"""


import socket







def  __snake_case       (   )      ->		Optional[int]:







		"""simple docstring"""





		A					       = socket.socket(socket.AF_INET ,			socket.SOCK_STREAM	)
		A					       = socket.gethostname()
		A					       = 12312

		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:
						A					       = sock.recv(1024	)
						if not data:
								break
						out_file.write(UpperCamelCase__	)

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


if __name__ == "__main__":
	main()









"""simple docstring"""


from __future__ import annotations







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		if not nums:
				return 0
		A					       = nums[0]
		A					       = 0
		for num in nums[1:]:
				A       , A					       = (
				    max_excluding + num,
				    max(UpperCamelCase__ ,			UpperCamelCase__	),
				)
		return max(UpperCamelCase__ ,			UpperCamelCase__	)


if __name__ == "__main__":
	import doctest

	doctest.testmod()





