#include using namespace std; int i; long long a, b, n; int main() { ios_base::sync_with_stdio(0); cin >> a >> b >> n; cout << a + b << ' '; cout << a * (n - (n % 2 == 0)) + b << '\n'; return 0; }