The transposable element Mdg3 in Drosophila melanogaster is flanked with the perfect direct and mismatched inverted repeats.