Solve 11309 - Counting Chaos.