#include <iostream> #include <string> using namespace std; int main() { int x; int y; int z; cin >> x >> y >> z; if (x >=0 and y >=0 and z >= 0) { cout << 3 * x + 5 * y + 12 * z; } }