import java.util.*;
public class printRect{
public static void main(String args []){
Scanner sc = new Scanner(System.in);
double Width = sc.nextDouble();
double Height = sc.nextDouble();
System.out.println("Perimeter of Rectangle is :"+2*(Width+Height));
System.out.print("Area of Rectangle is :"+Width*Height);
}
}