#!/usr/bin/env python3 f = lambda n, k: 50 * n + 250 * n // (4 + 1 * k) a, b = map(int,input().split()) print(f(a, b))