problem #47