#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin>>a;
b=a/10+a%10;
c=a/10*a%10;
cout<<b<<" "<<c<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKaW50CWEsIGIsIGM7CmNpbj4+YTsKYj1hLzEwK2ElMTA7CmM9YS8xMCphJTEwOwpjb3V0PDxiPDwiICI8PGM8PGVuZGw7CglyZXR1cm4gMDsKfQ==