import math a,b=map(int,input().split()) ans=50*a+(250*a)//(4+b) print(ans)