Solving problem 348