The son of a penniless woman fulfils the king's wishes with the help of a magic key-lock pinched from the devils and marries the princess.