Ad Infinitum Math Programming Contest August'14-- Reverse Game