// mc3a.cpp : Defines the entry point for the console application.
//

#include <iostream>
using namespace std;

long long a, b, n;

int main()
{
    cin >> a >> b >> n;
    if (n == 2) {
        cout << a * 1 + b << " " << a * 2 + b;
        return 0;
    }
    long long first = a * 1LL + b;
    long long last;
    if (n % 2LL == 0LL)
    {
        last = a * (n - 1LL) + b;
    }
    else {
        last = a * n + b;
    }
    cout << first << " " << last;
}