#include <iostream>
int main() {
size_t f, b, n;
std::cin >> f >> b >> n;
std::cout << (3 * f + 2 * b) * n;
}