find larger number with k digits containg 5n '3's and 3m '5's