monocarp play Rage Empires II Definitive Edition strategic computer game right he s planning attack opponent game Monocarps force enter opponent territory opponent build wallthe wall consist n section align row the ith section initially durability a_i if durability section 0 section consider brokenTo attack opponent Monocarp need break section wall section possibly adjacent possibly to plan use onag special siege weapon the onag shoot section wall shoot deal 2 damage target section 1 damage adjacent section in word onager shoot section x durability section x decrease 2 durability section x 1 x 1 exist decrease 1 Monocarp shoot section number times shoot break sectionsmonocarp wants calculate minimum number onager shot need break section help