dp gem-pack problem finished