def f(a,b): c,d = divmod((50*a),(0.8 + 0.2*b)) while d >= 1: c += 1 d -= 1 return 50*a + int(c) A,B = map(int,input().split()) print(f(A,B))