import sequtils,strutils,algorithm,math,sugar,macros,strformat import sets,tables,intsets,queues,heapqueue,bitops template get*():string = stdin.readLine().strip() macro unpack*(arr: auto,cnt: static[int]): auto = let t = genSym(); result = quote do:(let `t` = `arr`;()) for i in 0.. 0: if month + 1 >= p and month + 1 < p + q : n -= 2 * m else: n -= m month = (month + 1) mod 12 res += 1 echo res