A,B = map(int,input().split()) a = ((50 * A * 10) / (8 + 2 * B)) // 1 print(50 * A + int(a))