#include #include using namespace std; int main(){ int N,K; cin >> N >> K; cout << (50*N + (floor)( (500*N)/(ceil)(8+2*(double)(K)) ) )<< endl; return 0; }