/* 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
	{
		Foo x = new Foo(123, 456);
		System.out.println(x);
		Object clone = x.clone();
		System.out.println(clone);
	}
}

class Foo implements Cloneable {

    private Integer notInClone;
    private Integer doClone = 123;
    
    public Foo(int a, int b) {
    	notInClone = a;
    	doClone = b;
    }
    
    public Object clone() throws CloneNotSupportedException {
    	Foo res = (Foo)super.clone();
    	res.notInClone = null;
    	return res;
    }
    
    public String toString() {
    	return notInClone + ":" + doClone;
    }

}