abstract class Figure {
    protected int x;
    protected int y;
    public static final int Count = 0;

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    abstract void draw();

    abstract void move();

    public static int Count (int a) {
        int t=0;
        t++;
        return t;
    }

}

 class Line extends Figure {
     int x2;
     int y2;
     //  Scanner scanner = new Scanner(System.in);

     //  int x1 = scanner.nextInt();
     //  int y1 = scanner.nextInt();
     //  int x2 = scanner.nextInt();
     //  int y2 = scanner.nextInt();

     Line(int k1, int l1, int k2, int l2) {
         super.x = k1;
         super.y = l1;
         x2 = k2;
         y2 = l2;
     }

     void draw() {
         System.out.println("Линия");
         System.out.println("Координаты:");
         System.out.println("(x1;y1):" + "(" + x + ";" + y + ")");
         System.out.println("(x2;y2):" + "(" + x2 + ";" + y2 + ")");
     }

     void move() {
         //System.out.println("Сдвинуть фигуру на: ");
         //        int t = scanner.nextInt();
         //        x1 = x1 + t;
         //        x2 = x2 + t;
         //System.out.println("Сдвинуть фигуру на: ");
         //System.out.println("Сдвинуть фигуру на: ");
         //System.out.println("Сдвинуть фигуру на: ");
     }
 }
 class Rectangle extends Figure {

     int x2;
     int y2;
     int x3;
     int y3;
     int x4;
     int y4;

    Rectangle(int k1, int l1, int l2, int k3) {
         super.x = k1;
         super.y = l1;
         x2 = x;
         y2 = l2;
         x3 = k3;
         y3 = y;
         x4 = x3;
         y4 = y2;
     }

     void draw() {

         System.out.println("Прямоугольник");
         System.out.println("Координаты:");
         System.out.println("(x1;y1):" + "(" + x + ";" + y + ")");
         System.out.println("(x2;y2):" + "(" + x2 + ";" + y2 + ")");
         System.out.println("(x3;y3):" + "(" + x3 + ";" + y3 + ")");
         System.out.println("(x4;y4):" + "(" + x4 + ";" + y4 + ")");
     }

     void move() {
     }
 }
 class Circle extends Figure {
     //Scanner scanner = new Scanner(System.in);
     //int x = scanner.nextInt();
     //int y = scanner.nextInt();
     //int r = scanner.nextInt();
     int r;

     Circle(int k1, int l1, int u) {
         super.x = k1;
         super.y = l1;
         r = u;
     }

     void draw() {

         System.out.println("Круг");
         System.out.println("Координаты:");
         System.out.println("Центр (x;y):" + "(" + x + ";" + y + ")");
         System.out.println("Верхняя точка: " + "(" + x + ";" + (y + r) + ")");
         System.out.println("Левая точка: " + "(" + (x - r) + ";" + y + ")");
         System.out.println("Нижняя точка: " + "(" + x + ";" + (y - r) + ")");
         System.out.println("Правая точка: " + "(" + (x + r) + ";" + y + ")");
     }

     void move() {
     }
 }
 class CompositeFigure extends Figure {
     // public CompositeFigure()
     void draw() {
     }

     void move() {
     }

 }

 class Activity {
     public static void main(String[] args) {
         Line line = new Line(1, 1, 4, 2);
         Circle circle = new Circle(0, 0, 2);
         Rectangle rectangle = new Rectangle(3, 3, 4, 6);

         line.draw();
         rectangle.draw();
         circle.draw();
     }
}