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