#include using namespace std; int main() { int a, b; cin >> a >> b; cout << 50 * a + (250 * a) / (4 + b) << endl; return 0; }