a,b=map(int,input().split()) p=50*a r=(8+2*b)/10 q=p//r print(int(p+q))