import java.util.Scanner;
public class Rectangel {
double x;
double y;
double Area(double x,double y) {
double area;
area=x*y;
return area;
}
double Zhouchang(double x,double y) {
double zhouchang;
zhouchang=2*(x+y);
return zhouchang;
}
public static void main (String [] arges) {
Scanner in = new Scanner(System.in);
double x=in.nextDouble();
double y=in.nextDouble();
if(x==y) {
System.out.println("形状:正方形");
}else {
System.out.println("形状:长方形");
}
System.out.println("长:"+x);
System.out.println("宽:"+y);
Rectangel rectangle =new Rectangel ();
double area1=rectangle.Area(x, y);
double zhouchang1=rectangle.Zhouchang(x, y);
System.out.println("面积:"+area1);
System.out.println("周长:"+zhouchang1);
in.close();
}
}
