http://ybt.ssoier.cn:8088/problem_show.php?pid=1414
https://www.luogu.org/problem/P3954
#include <bits/stdc++.h>
using namespace std;
int main( void )
{
int a,b,c;
int ans;
cin>>a>>b>>c;
//ans=a*20/100+b*30/100+c*50/100;
ans=(a*2+b*3+c*5)/10;
//ans=a/5+b*3/10+c/2;
cout<<ans<<endl;
return 0;
}