Ernesto: I am a knight.
Fontleroy: While I am only a knave.
Gildenstern: I agree with you there, Fontleroy.
Ernesto: Gildenstern is a knight.
Fontleroy: No, he is a liar.
Gildenstern: Then let me say: I did not arrive first.
Ernesto: Fontleroy is the liar.
Fontleroy: Following Gildenstern's lead, let me say: I did not arrive first.
Gildenstern: Ernesto is a knave.
Ernesto: If that is so, then the most honest of us did not arrive last.
Fontleroy: Ernesto, you are a knight.
The innkeeper knew that everyone in these parts was either a knight who always told the truth, a liar who never told the truth, or a knave whose statements strictly alternated between truth and untruth. Using deductive reasoning, what is the disposition of each man, and what room did the innkeeper assign to each?