
public class AnotherVector  {

  int a, b;

  public AnotherVector(int x, int y) {
    this.a = x;
    this.b = y;
  }
  
  public AnotherVector add_vector(AnotherVector v) {
    
    this.a += v.a;
    this.b += v.b;
    return this;
  }

  public AnotherVector multiply_by_value(int k) {

    this.a *= k*this.a;
    this.b *= k*this.b;
    return this;
  }

  public String toString() {
    return ("(" + a + ", " + b + ")");
  }
}

