class Personne {
    String nom;
    int    age;
    Personne enfant;
}

class Exo3 {

    static void affiche (Personne p) {
        if (p != null) {        
            System.out.println(p.nom + " " + p.age);
            affiche(p.enfant);
        }
    }

    static void main (String[] args) {

        Personne p1 = new Personne();
        p1.nom = args[0];
        p1.age = Integer.parseInt(args[1]);

        Personne p2 = new Personne();
        p2.nom = args[2];
        p2.age = Integer.parseInt(args[3]);
        p2.enfant = null;

        p1.enfant = p2;
        affiche(p1);
    }
}
