class Complex {

   private double real, img;

   Complex (double real, double img) {
     // your implementation goes here
   }

   public double getReal () {
     // your implementation goes here
   }

   public double getImg () {
     // your implementation goes here
   }

   public void add (Complex c) {
     // Your implementation goes here
   }

   public void subtract (Complex c) {
    // Your implementation goes here
   }

   public void multiply(Complex c) {
     // your implementation goes here
   }

   public void print () {
      // Print the real and imaginary parts
   }
  
   public static void main(String argv[]) {
     // Sample test        
     Complex c1 = new Complex (2.0, 5.0); // 2.0 + 5.0i
     Complex c2 = new Complex (-3.1, -6.3); // -3.1 - 6.3i
     c1.add (c2); // c1 is now -1.1 - 1.3i
     c1.print();
     c2.print();     

     c1.subtract(c2);
     c1.print();
     c2.print();

     c1.multiply(c2);
     c1.print();
     c2.print();
      
   }
}


