It won't be a pain, if you ride the Riddle Train!

A note, carved into wood and painted with red ink, warns you can't escape until you decode five.