#include <stdio.h>

int main()
{
	int a,b,c,x;
	scanf("%d %d",&x,&a);
	b=x*a;
 c=2*a+2*x;
	printf("面積=%d 周の長さ=%d",b,c);
	return 0;
}
