#include <iostream> #include <iomanip> using namespace std; int main(){ int a,b,c; cin >> a >> b >>c; cout << a*3+b; return 0; }