#include <iostream>
 
using namespace std;
 

int main(){
//  freopen("input.txt", "r", stdin);
//  freopen("output.txt", "w", stdout);
  long long  x,y,z;
  cin >> x >> y >> z;
  cout << 3*x+5*y+12*z;

  return 0;
}