import sequtils,bitops proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "" .} proc getCWW(S:seq[int]):int = if S.len < 3: return 0 var results = newSeq[int]() for a in 0..