#include<bits/stdc++.h> using namespace std; int n,x,y; int main(){ scanf("%d%d%d",&x,&y,&n); x--,y--; printf("%d",n/10*y+n%10*x); return 0; }