a,b=map(int,input().split()) def f(n,k): return 50*n+int(50*n*10/(8+2*k)) print(f(a,b))