#include<bits/stdc++.h>
using namespace std;
int main(){
double R,L,V,Q,C;
scanf("%lf %lf %lf",&L,&R,&V);
Q=L*R;
C=(L+R)*V;
cout<<"Q:"<<Q<<endl;
printf("C:%.0lf",C);
}
/**************************************************************
Problem: 1958
User: toughuatao1
Language: C++
Result: Wrong Answer
****************************************************************/