#include <iostream>
using namespace std;
int main() {
int a,b,c,s,p;
cin>>a>>b>>c;
s=a+b+c;
p=a*b*c;
cout<<s<<endl<<p;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCBhLGIsYyxzLHA7CmNpbj4+YT4+Yj4+YzsKcz1hK2IrYzsKcD1hKmIqYzsKY291dDw8czw8ZW5kbDw8cDsKCXJldHVybiAwOwp9