# include<iostream> using namespace std; int main(){ int N,M; scanf("%d%d",&N,&M); printf("%d %d",2*(N+M),N*M); return 0; }