/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Map aMap = new HashMap();
		Map bMap = aMap;
		
		System.out.println(aMap == bMap);
		
		ByteArrayOutputStream bos = new ByteArrayOutputStream();
		ObjectOutput out = new ObjectOutputStream(bos);
        out.writeObject(aMap);
        out.writeObject(bMap);
        out.flush();
        byte[] bytes = bos.toByteArray();
        
        ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
        ObjectInput in = new ObjectInputStream(bis);
        Map aMap2 = (Map) in.readObject();
        Map bMap2 = (Map) in.readObject();
        
        System.out.println(aMap2 == bMap2);
	}
}