Limak old brown bear he go bowling friend today feel good try beat recordFor roll ball get score integer maybe negative number point Score ith roll multiply score sum so k roll score s1s2sk total score total score 0 rollsLimak n roll get score ai ith he want maximize total score come interesting idea he cancel roll say distract strong windLimak able cancel number roll maybe total score calculate noncanceled roll look sample test clarification what maximum total score Limak