You are taken to a room in which there are two doors. Behind one door is unlimited treasure, behind the other is a beast that will kill you. There is a guard in front of each door. You are told that one guard always lies but the other one always tells the truth, although you aren't told which is which.
You are allowed to ask one and only one question of one of the two guards.
What question will you ask and then what will you do?