<s> from java . io import Serializable <EOL> from java . lang import Object <EOL> class A : <EOL> def __init__ ( self , a ) : <EOL> self . a = a <EOL> def __eq__ ( self , other ) : <EOL> return self . __class__ == other . __class__ and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class AJ ( Object , Serializable ) : <EOL> def __init__ ( self , a ) : <EOL> self . a = a <EOL> def __eq__ ( self , other ) : <EOL> return self . __class__ == other . __class__ and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class N ( object ) : <EOL> def __init__ ( self , a ) : <EOL> self . a = a <EOL> def __eq__ ( self , other ) : <EOL> return self . __class__ == other . __class__ and self . __dict__ == other . __dict__ <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class NL ( list ) : <EOL> def __init__ ( self , a , * x ) : <EOL> list . __init__ ( self , x ) <EOL> self . a = a <EOL> def __eq__ ( self , other ) : <EOL> return ( self . __class__ == other . __class__ and list . __eq__ ( self , other ) and <EOL> self . __dict__ == other . __dict__ ) <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) <EOL> class NT ( tuple ) : <EOL> def __new__ ( typ , a , * x ) : <EOL> nt = tuple . __new__ ( typ , x ) <EOL> nt . a = a <EOL> return nt <EOL> def __eq__ ( self , other ) : <EOL> return ( self . __class__ == other . __class__ and tuple . __eq__ ( self , other ) and <EOL> self . __dict__ == other . __dict__ ) <EOL> def __ne__ ( self , other ) : <EOL> return not ( self == other ) </s>
