#include <bits/stdc++.h>

using namespace std;

int a, b, n;

int main()
{
#ifndef ONLINE_JUDGE
	freopen("data.in", "r", stdin);
	freopen("data.out", "w", stdout);
#endif // ONLINE_JUDGE

	ios::sync_with_stdio(0);
	cin >> a >> b >> n;
	cout << a + b << ' ';

	if (n % 2 == 0)
		cout << 1LL*a*(n - 1) + b;
	else cout << 1LL*a*n + b;
}