class Coureur implements Runnable {
  String nom;
  long repos;
  Coureur(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é.");
  }
}

