#include using namespace std; int main() { int a, b; cin >> a >> b; int s = (a + b) / 2; cout << s * 7 << endl; return 0; }