#include <iostream>using namespace std;int main(int argc, char** argv){int a,b;while(cin>>a>>b){cout<<(a+b)*2<<endl;}}