This is my code for task in USACO_traning, hope you enjoy it.