import java.util.*;
class rectangle
{
public static void main(String args[])
{
Scanner sc= new Scanner(System.in);
int l,w,a,p;
double d;
System.out.println("Enter the length and width");
l=sc.nextInt();
w=sc.nextInt();
a=l*w;
p=2*(l+w);
d=Math.sqrt(l*l+w*w);
System.out.println("Area="+a);
System.out.println("Perimeter="+p);
System.out.println("Diagonal="+d);
}
}