#include <iostream>
using namespace std;
int main() {
int s=0, x;
cin >> x;
s += s + x % 10 + ((x / 10) % 10);
cout << s;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int s=0, x;
cin >> x;
s += s + x % 10 + ((x / 10) % 10);
cout << s;
return 0;
}