import sequtils, strutils let w, d = parseInt readLine stdin if d == 1: echo w quit() let result = countdown(d, 2).toSeq.foldl(a - (a div (b * b)), w) echo result