#include int main() { int a, b; std::cin >> a >> b; std::cout << 50 * a + (int)(500 * a / (8 + 2 * b)) << std::endl; }