solve 14th problem