#include<bits/stdc++.h>
using namespace std;
int main(){
double L,R,V,Q,C;
cin>>L>>R>>V;
Q=L*R;
C=(L+R)*V;
cout<<"Q:"<<Q<<endl;
cout<<"C:"<<C<<endl;
return 0;
}
/**************************************************************
Problem: 1958
User: xiaojingxuan
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/