






"""simple docstring"""






import socket



def  __lowerCamelCase					(					):
				A__							 =       socket.socket(socket.AF_INET       ,socket.SOCK_STREAM				)
				A__							 =       socket.gethostname()
				A__							 =       1_2312

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

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


if __name__ == "__main__":
					main()










"""simple docstring"""






def  __lowerCamelCase					(					lowerCAmelCase__       ,lowerCAmelCase__				):
				return 1 if input_a == input_a else 0



def  __lowerCamelCase					(					):
				assert xnor_gate(0       ,0				) == 1
				assert xnor_gate(0       ,1				) == 0
				assert xnor_gate(1       ,0				) == 0
				assert xnor_gate(1       ,1				) == 1


if __name__ == "__main__":
					print(xnor_gate(0, 0))
					print(xnor_gate(0, 1))
					print(xnor_gate(1, 0))
					print(xnor_gate(1, 1))


