Solving problem 120