LGE CodeJam 2013 Aug

Problem 1,2