#include<cstdio>
int main() {
  short a,b;
  scanf("%hd%hd",&a,&b);
  printf("%hd\n%hd",2*a+2*b,a*b);
}