problem 54: solved