# yukicoder No.445 得点 2020/01/30 a,b=map(int,input().split()) ans=50*a+int(250*a/(4+b)) print(ans)