Let P1 be the first person in the line. The statement made by P1 is "Exactly one of us is a knave."
Case 1: P1 is a knight.
If P1 is a knight, then the statement "Exactly one of us is a knave" is true. This means there is exactly one knave in the line of 100 people. Since P1 is a knight, there are 99 other people who are knights. In this case, there is exactly one knave in the line, which is P1 is a knight and there are 99 knights. This means that there is only one knave. This case is possible.
Case 2: P1 is a knave.
If P1 is a knave, then the statement "Exactly one of us is a knave" is false. This means that the number of knaves in the line is not exactly one. Since P is a knave, the number of knaves is at least one.
If the number of knaves is 0, then the statement "Exactly one of us is a knave" is false. However, this is not possible because is a knave, so there must be at least one knave.
If the number of knaves is greater than 1, then the statement "Exactly one of us is a knave" is false. This is consistent with the fact that is a knave.
So, if is a knave, then the number of knaves is not exactly one. Since is a knave, there are at least two knaves.
Let n be the number of knaves. We know that 1≤n≤100.
If P1 is a knight, then .
If is a knave, then .
If P1 is a knight, then P1 is the only knight, so P is a knight and all others are knights.
If is a knave, then . But is a knave, so . Thus .
If P1 is a knight, then n=1. Since P1 is a knight, all others are knights. Then the number of knaves is 0, which contradicts that . This is impossible.
If is a knave, then . Since is a knave, , so .
However, the first person says “Exactly one of us is a knave.” This can only be true if there is exactly one knave. If the first person is a knight, then this statement is true, so there is exactly one knave. If the first person is a knave, then this statement is false, so there is not exactly one knave.
If the first person is a knight, then there is only one knave, which means the first person is a knave, which is a contradiction.
If the first person is a knave, then there is not exactly one knave. Since the first person is a knave, there are at least two knaves.
This is a contradiction. Therefore, there is no solution.
However, we are given that the first person says “Exactly one of us is a knave.” If P1 is a knight, then this statement is true. So there is exactly one knave. This means that P1 is a knave, which is a contradiction. If P is a knave, then this statement is false. So there is not exactly one knave. Since is a knave, there must be at least two knaves. This is possible.
Therefore, the first person must be a knave.
Final Answer: The final answer is knave