#include <bits/stdc++.h>

using namespace std;

typedef long long LL;

const int nmax = 100010; const LL mod = 1000003;

LL a,b,N;

int main(void){
   int i,j,x,y,T,z,t,e,nod,dist,cul;
//   freopen("txt.in","r",stdin);
//   freopen("txt.out","w",stdout);
   ios::sync_with_stdio(false);
   cin >> a >> b>> N;

   cout << a+b << ' ';
   if(N==2){
      cout << a*2+b << '\n';
      return 0;
   }
   if(N%2==0){
      cout << a*(N-1)+b << '\n';
      return 0;
   }
   cout << a*N+b << '\n';

    return 0;
}