#include <iostream>;
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) * 2;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPjsKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKIAppbnQgbWFpbigpIHsKICAgIGludCBhLCBiOwogICAgY2luID4+IGEgPj4gYjsKICAgIGNvdXQgPDwgKGEgKyBiKSAqIDI7CiAgICByZXR1cm4gMDsKfQ==