cf div2 C - nice, bitmasks