#include <iostream>
#include <set>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;

int a, b;
long long n;

int main()
{
	cin >> a >> b >> n;

	if (n == 2) {
		cout << a + b << " " << 2 * a + b;
		return 0;
	}

	cout << a + b << " ";

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

    return 0;
}