#include <bits/stdc++.h>
using namespace std;
double get(double a, double b, double c, double d){
return ceil((a + b + c) / d);
}
int main(){
double x, y, z;
cin >> x >> y >> z;
cout << get(get(x, y, z, 3), get(3 * x, 5 * y, 7 * z, 4), get(11 * x, 13 * y, 17 * z, 5), 7);
}