import java.util.*;

public class CachePlay
{
    public static void main(String[] args){


	ArrayList list = new ArrayList();
	list.add("hello");
	list.add(Integer.valueOf(3));

	String s = (String) list.get(0);
	s = (String) list.get(1);	
	
	int count=100;
	Map<Integer,Integer> cache = new HashMap<Integer,Integer>();
	for(int k=0; k < 1000; k++){
	    for(int j=0; j < count; j++){
		Integer i = Integer.valueOf(k);
		//Integer i = new Integer(k);
		int xhash = System.identityHashCode(i);
		if (cache.containsKey(xhash)){
		    cache.put(xhash,cache.get(xhash)+1);
		}
		else {
		    cache.put(xhash,1);
		}
	    }
	}
	int solo = 0,non=0;
	for(Integer i : cache.keySet()){
	    count = cache.get(i);
	    if (count > 1){
		non++;
//		System.out.println(count+" \t# occs of "+i);
	    }
	    else {
		solo++;
//		System.out.println("one occ of "+i);
	    }
	}
	System.out.println(solo+" "+non+" size = "+cache.keySet().size());
    }
}
