solve problem46
solve problem48