USACO sort3 soloved