import java.util.*;
public class rectangle {
public static void main(String args[]){
Scanner reader=new Scanner(System.in);
int i= reader.nextInt();
Scanner reader1=new Scanner(System.in);
int j= reader1.nextInt();
juxing www=new juxing(i,j);
System.out.println("面积为:"+www.mianji+"周长为:"+www.zhouchang);
}
}
class juxing{
int mianji,zhouchang;
public juxing(int chang,int kuan){
mianji=chang*kuan;
zhouchang=(kuan+chang)*2;
}
}