#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; cout << 5000 - 100 * y / 2 - 100 * (100 - x) / 2; return 0; }