Solve problem No 3.