The inverse problem of the theory of degenerate dwarfs