A,B = map(int,input().split()) a = ((50 * A) / (0.8 + 0.2 * B)) // 1 print(50 * A + int(a))