import java.io.*;

public class square
 {public static input in = new input();   // input library
  private double length;
  private double width;
  
public square()
 {}  

 public square (double l, double w)
  {length = l;
   width = w;
}

  public void enter() throws IOException
   {System.out.print("Enter length ");
    length = in.getDouble();
    System.out.print("Enter width ");
    width = in.getDouble();
} 
 
public void printArea()
 {System.out.println("Area is "+length * width);
    }
    
 public double getArea()
  {return length * width;
    }
  
    public void printPerimeter()
     {System.out.println((length + width) * 2);
        }
}