We refer to the remote, mysterious island in the earlier problem, with Knights, who always tell the truth; Liars, who always lie; and Spies who speaks truthfully or falsely at will.
Marty, who was visiting this island, was approached by three men. One wears blue, one wears red and one wears green. Marty knows one is a knight, one is a liar and the remaining person, a spy. However, he is ignorant of the precise type of each of the three individuals.
Marty asks them their types, and they respond as follows:
o The man in blue says, "I am not a spy."
o The man in red says, "I am a liar."
o The man in green says, "If you asked me, I would say that the man in red is the spy."
Determine the precise types of the three men.