#coding: utf-8 import math N,K = map(int, input().split()) print(50*N+math.floor(500*N/(8+2*K)))