#include using namespace std; int main() { int a,b,c; cin>>a; cin>>b; cout<<(a+b)*2<