Classification of solutions to Toda systems of types C and B with singular sources