#include<bits/stdc++.h> using namespace std; int main(){ long long x,y,n; cin>>x>>y>>n; if(x*10<y) cout<<n*x; else cout<<n/10*y+n%10*x; return 0; }
dl=大佬