Riley, who is visiting the island has come face to face with 3 people. One of them wears blue, one wears red and one wears green. Riley knows that one of them is a knight, one is a liar and the remaining one a spy. He inquires who amongst the three individuals is a spy. They respond as follows:
- The man wearing blue says, "That man in red is the spy."
- The man wearing red says, "No, the man in green is the spy."
- The man wearing green says, "No, the man in red is in fact the spy."