






class     lowerCamelCase_					:







				def __init__(    self							,       __lowerCAmelCase  ):
								"""simple docstring"""
								__magic_name__		:List[str]   =   set_counts
								__magic_name__		:Dict   =   max(__lowerCAmelCase  )
								__magic_name__		:List[str]   =   len(__lowerCAmelCase  )
								__magic_name__		:Optional[Any]   =   [1] * num_sets
								__magic_name__		:Optional[Any]   =   list(range(__lowerCAmelCase  )  )







				def       A						(    self							,       __lowerCAmelCase							,       __lowerCAmelCase  ):
								"""simple docstring"""
								__magic_name__		:Any   =   self.get_parent(__lowerCAmelCase  )
								__magic_name__		:Any   =   self.get_parent(__lowerCAmelCase  )

								if src_parent == dst_parent:
												return False

								if self.ranks[dst_parent] >= self.ranks[src_parent]:
												self.set_counts[dst_parent] += self.set_counts[src_parent]
												__magic_name__		:List[Any]   =   0
												__magic_name__		:Optional[int]   =   dst_parent
												if self.ranks[dst_parent] == self.ranks[src_parent]:
																self.ranks[dst_parent] += 1
												__magic_name__		:Tuple   =   self.set_counts[dst_parent]
								else:
												self.set_counts[src_parent] += self.set_counts[dst_parent]
												__magic_name__		:int   =   0
												__magic_name__		:Union[str, Any]   =   src_parent
												__magic_name__		:Union[str, Any]   =   self.set_counts[src_parent]

								__magic_name__		:str   =   max(self.max_set							,       __lowerCAmelCase  )
								return True







				def       A						(    self							,       __lowerCAmelCase  ):
								"""simple docstring"""


								if self.parents[disj_set] == disj_set:
												return disj_set
								__magic_name__		:Any   =   self.get_parent(self.parents[disj_set]  )
								return self.parents[disj_set]












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


