#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
int b;
cin>>b;
int n;
cin>>n;
int p;
p=(a*100+b)*n;
cout<<p/100<<" "<<p%100;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpCnsKICAgIGludCBhOwogICAgY2luPj5hOwogICAgaW50IGI7CiAgICBjaW4+PmI7CiAgICBpbnQgbjsKICAgIGNpbj4+bjsKICAgIGludCBwOwogICAgcD0oYSoxMDArYikqbjsKICAgIGNvdXQ8PHAvMTAwPDwiICI8PHAlMTAwOwogICAgcmV0dXJuIDA7Cn0=