class Point {
  int x; // on the horizontal increasing from left to right 
  int y; // on the vertical increasing as you go down 
  Point(int x, int y) {
    this.x = x;
    this.y = y; 
  }
  double distanceTo(Point other) {
    double dx = this.x - other.x;
    double dy = this.y - other.y;
    return Math.sqrt( dx * dx + dy * dy ); 
  }
  public String toString() {
    return "(" + this.x + ", " + this.y + ")";  
  }
}