problem 32
trailing whitespace removed