public class Point {
  double x, y;
  public Point(double x, double y) {
    this.x = x; this.y = y;
  }
}
public class RectRegion {
  double x, y, width, height;
  public RectRegion(double x, double y, double w, double h) {
    this.x = x; this.y = y; this.width = w; this.height = h;
  }

  public boolean inside(Point p) {
    return (p.x < this.x + width) && (p.x > this.x)
        && (p.y < this.y + height) && (p.y > this.y);
  }
}

public class CircRegion {
  double x, y, radius;
  public CircRegion(double x, double y, double radius) {
    this.x = x; this.y = y; this.radius = radius;
  }

  public boolean inside(Point p) {
    return (Math.sqrt(Math.pow(p.x - this.x, 2) + Math.pow(p.y - this.y, 2))) < this.radius;
  }
}

public class Main {
  public static void main(String[] args) {
    CircRegion c = new CircRegion(5, 5, 3);
    System.out.println(c.inside(new Point(4, 4)));
    System.out.println(c.inside(new Point(0, 0)));

    
  }
}
