#include<bits/stdc++.h>
using namespace std;
int main(){
int t,s,p;
cin>>t>>s>>p;
double dis[5]={0.5,0.6,0.8,0.9,0.0};
int ans=0;
for(int i=0;i<5;i++){
int cnt=t/5;
if(i==0) cnt+=1;
cnt=min(cnt, s);
ans+=int(p*dis[i])*cnt;
s-=cnt;
if(s==0) break;
}
cout<<ans<<endl;
return 0;
}