#include using namespace std; using ll = long long; int main(){ int w, z, b; string s; cin >> w >> z >> s; b = stoi(s.erase(1,1)); cout << w+z+(w+z)/10*b << endl; return 0; }