#include int main() { int a, b, d; scanf("%d %d %d", &a, &b, &d); if (a < b) printf("%d\n", d * a); else printf("%d\n", d * b); return 0; }