poj3167 AC