#include <iostream> #include <iomanip> using namespace std; int main(){ int x,y; cin>>x>>y; cout<<3*x+2*y; }