Notes: In Subtask 2, it is guaranteed that there are only $C$ different numbers, but they are not guaranteed to be within $[1, C]$.
Notes: In Subtask 2, it is guaranteed that there are only $C$ different numbers, but they are not guaranteed to be within $[1, C]$.