class IntList {

    public static IntList dcatenate(IntList A, IntList B) {
        IntList res = A;
        while (A.rest != null) {
            A = A.rest;
        }
        A.rest = B;
        return res;
    }

    public  IntList(int first0, IntList rest0);
    public  IntList();

}