public class Punto {
  int x,y; // Variables de instancia
  public Punto(int x, int y) { // El constructor
    this.x= x; this.y= y;
  }
  public void moverEn(int dx, int dy) { // Un método
    this.x+= dx; this.y+= dy;
  }
  public void moverA(int x, int y) {
    this.x= x; this.y= y;
  }

  // El metodo pedido
  public Punto suma(Punto p) {
    return new Punto(this.x+p.x, this.y+p.y);
  }

  public String toString() {
    return "("+this.x+","+this.y+")";
  }
}
