#include using namespace std; int a, b; int main() { cin >> a >> b; cout << 50 * a + floor(50.0L * a / (0.8L + 0.2L * b)) << endl; return 0; }