import sequtils,strutils,algorithm,math,sugar,macros,strformat 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 and not (l == "drawtwo" and preDraw == 2) and not (l == "drawfour" and preDraw == 4): C[me] += draw draw = 0 nextTurn() C[me] -= 1 case l of "drawtwo": draw += 2 preDraw = 2 of "drawfour": draw += 4 preDraw = 4 of "reverse": isUp = not isUp of "skip": nextTurn() else: discard if i == L.len() - 1: echo me + 1," ",-C[me] quit(0) nextTurn()