class Point {
  int x,y;
  public String toString() {
    return "(" + this.x + ", " + this.y + ")";
  }
  void deplace(int dx, int dy) {
    x += dx;
    y += dy;
  }
}

class Disque {
  Point centre;
  int rayon;
  public String toString() {
    return centre.toString() + ": " + rayon;;
  }
  void deplace(int dx, int dy) {
    centre.deplace(dx, dy);
  }
  double surface() {
    return Math.PI*rayon*rayon;
  }
}

class Anneau extends Disque {
  int prayon;
  public String toString() {
    return super.toString() + ":" + prayon;
  }
}

class TestPoint {
  public static void main(String[] args) {
    Point p;
    p = new Point();
    p.x = 5;
    Disque d = new Disque();
    d.centre = p;
    d.rayon = 5;
    System.out.println(d + " " +d.surface());
    Anneau a = new Anneau();
    a.centre = new Point();
    System.out.println(a);
  }

}
