August 2010 Challenge | CodeChef