a,b = map(int,input().split()) c = 50*a d = 0.8+0.2*b print(int(c+int(c/d)))