[SRM595] LittleElephantAndBallsAgain by Yanzhe Chen