problem 24 fmt