#include using namespace std; int a,b,c;char d; main() { cin>>a>>d>>b>>d>>c; cout<<(a+b)*c/2<<((a+b)*c%2?".50":".00")<