#include <iostream>
using namespace std;
int main()
{
int x,y;
while(cin >> x >> y){
if(!(x >=-100 && x <= 100) && !(y >= 0 && y <= 200))
break;
cout<< x * y * 2 <<endl;
}
}
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1012