#include<bits/stdc++.h> using namespace std; int z,x,q; double zh; int main() { scanf("%d%d%d",&z,&x,&q); if(z>=100 || x>=100 || q>=100) { zh=(int)(z*0.2+x*0.3+q*0.5); cout<<zh; }; return 0; }