#include<bits/stdc++.h>
#define int unsigned long long
using namespace std;
const int N =  2 * 1e3 + 100;
bool was[N] ;
int  a[N] , n  , x ;	
int lvl1 , lvl2;
main(){
	cin >> n >> x;
	cout << n + n + x;
}