On his way home from the war, a soldier met an horrid old witch. The witch offered the solider gold if he helped her retrieve a magic tinderbox. In the end, the soldier took both the gold and the tinderbox. After spending all the money, he found out that the tinderbox could summon three powerful dogs to do his bidding.
Even when the soldier demanded to see the princess, who was locked in one of city’s towers, one of the dogs managed to transport the sleeping beauty to him.
This repeated itself for three nights in a row, but then the king discovered the rendezvous and ordered the soldier to be hanged. The dogs came to his rescue yet again, and the princess came out of the castle and married the soldier.