import sequtils, strutils var t = stdin.readLine.split.map parseInt ans = 0 while t[0] > 2*t[1]: ans.inc t[1] echo ans