On an island every inhabitant is either a knight, who always tells the truth, or a knave, who always lies. You meet three inhabitants, A, B and C.

A says: "C is a knave."
B says: "C and I are of the same kind."
C says: "B is a knave."

Which of A, B and C are knights and which are knaves? Show the reasoning that rules out every other assignment.
