#include #define NMAX 1005 using namespace std; inline void debugMode() { #ifndef ONLINE_JUDGE freopen("debug.in", "r", stdin); #endif // ONLINE_JUDGE } int main() { ios :: sync_with_stdio(false); debugMode(); int a,b,n; cin >> a >> b >> n; cout << a + b << " " << a * n + b; return 0; }