#include<iostream>
using namespace std;
int main(){
int x,y,z,total;
cin>>x;
cin>>y;
cin>>z;
total=x*4+y*2+z*4;
cout<<total;
}
#include<iostream>
using namespace std;
int main(){
int S;
cin>>S;
S=S-S/10;
S=S-(4*S)/5;
S=S-S/4;
cout<<S;
}
#include<iostream>
using namespace std;
int main(){
int tata,bunny,mama,n;
cin>>n;
tata=(15*n)/100;
bunny=tata-18;
mama=n-tata-bunny;
cout<<mama;
}