import sys input=lambda: sys.stdin.readline().rstrip() a,b=map(int,input().split()) print(50*a+(500*a)//(8+2*b))