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: "Exactly two of us three are knights."
B says: "Exactly one of us three is a knight."
C says: "B and I are of the same kind."

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