




'''simple docstring'''







def 						_A      ( UpperCAmelCase      ,UpperCAmelCase						):






   '''simple docstring'''







   return int((input_a, input_a).count(0						) == 0						)







def 						_A      ( ):






   '''simple docstring'''







   assert and_gate(0      ,0						) == 0
   assert and_gate(0      ,1						) == 0
   assert and_gate(1      ,0						) == 0
   assert and_gate(1      ,1						) == 1


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








'''simple docstring'''







import socket







def 						_A      ( ):






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


