solve 16th problem