problem 109 AC