#include 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; // 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; return 0; } if(N%2==0){ cout << a*(N-1)+b; return 0; } cout << a*N+b; return 0; }