USACO prefix
solve poj3187