#include <iostream>
#include <cmath>
using namespace std;
int main() {
float n,a,b,c,d;
cin>>n;
cin>>a;
cin>>b;
cin>>c;
d=d+a/50*2;
d=d+b/50*2;
d=d+c*1;
d=d+c*0.5;
cout<<floor(d);
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main() {
float n,a,b,c,d;
cin>>n;
cin>>a;
cin>>b;
cin>>c;
d=d+a/50*2;
d=d+b/50*2;
d=d+c*1;
d=d+c*0.5;
cout<<floor(d);
return 0;
}