#include <bits/stdc++.h>
using namespace std;

int main() {
	int g,e,p;
	cin>>g>>e>>p;
	cout<<(g*3+e)<<endl;
	return 0;
}