#include using namespace std; int main() { int Y, Z; double B; cin >> Y >> Z >> B; cout << (10 + (int)(B * 10)) * (Y + Z) / 10 << endl; }