In a Hungarian tale published by Nándor Pogány, "The Magic Cherry-Tree", a king is dying and only the cherries that grow on the top of a huge tree can cure him. A shepherd volunteers to climb up the tree to get them. After a while, he arrives at a diamond meadow and meets a princess sitting on a throne of opal and gems. After several adventures, they marry and she gives him the keys to the rooms in her castle. When he opens a door, he finds a twelve-headed dragon chained to the wall. The dragon asks the shepherd to release him, which the human does. After this, the dragon kidnaps the princess and the shepherd goes after him with the help of a golden-maned horse.