w, s = map(int, input().split()) c = s * (s + 1) / 2 print(int((w - (c * 29260)) / 110))