problem 147 AC