USACO Problem: learning.cc