#include using namespace std; long long parse_b10(const string& s) { // Trả về b10 = 10*B, với B có tối đa 1 chữ số thập phân. auto pos = s.find('.'); if (pos == string::npos) return stoll(s) * 10; string a = s.substr(0, pos); string b = s.substr(pos + 1); // phần thập phân if (b.empty()) b = "0"; // chỉ lấy 1 chữ số thập phân theo đề if (b.size() > 1) b = b.substr(0, 1); return stoll(a) * 10 + stoll(b); } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); long long W, Z; string B; if (!(cin >> W >> Z >> B)) return 0; long long b10 = parse_b10(B); // b10 = 10*B long long S = W + Z; // tổng giá long long ans = S * (10 + b10) / 10; // luôn chia hết theo ràng buộc cout << ans << '\n'; return 0; }