#include <stdio.h>

int main()
 {
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    int S = 0;
    int V = 0;
    S = a * b * 2 + a * c * 2 + b * c * 2;
    V = a * b *c;
    printf("%d\n",S);
    printf("%d\n",V);

    return 0;
}