class CoureurThread extends Thread {
  String nom;
  long repos;
  CoureurThread(String nom, long repos) { this.nom = nom; this.repos = repos; }
  public void run() {
    for (int i = 0; i < 5; i++) {
      System.out.println(nom + " court.");
      try {
	Thread.sleep(repos);
      } catch (InterruptedException e) {}
    }
    System.out.println(nom + " est arrivé.");
  }
}


class LapinTortue2 {
  public static void main(String[] args) {
    Thread threadLapin = new CoureurThread("Lapin", 300);
    Thread threadTortue = new CoureurThread("Tortue", 500);
    threadTortue.start();
    threadLapin.start();
  }

}

