Sprague Grundy Number - Partitioning game from lightoj