Solved: USACO Training 1.1 (friday)

Solved Friday the Thirteenth problem (id: friday) in USACO Training