There was a trial in a land where every inhabitant is either a knight, a liar, or a knave. There were three suspects, A, B, and C.
A:I am a knight.
B:I am a liar.
C:I am a knave.
A:No knaves are guilty.
B:A is a knight.
C:At most one of us is guilty.
What are A, B, and C, and who is guilty?