there n log ith log length a_i meter since chop log tiring work errorgorn maomao90 decide play gameerrorgorn maomao90 turns chop log errorgorn chop on turn player pick log chop 2 piece if length choose log x length result piece y z y z positive integer xyz hold for example chop log length 3 log length 2 1 log length 3 0 2 2 15 15the player unable chop loser assume errorgorn maomao90 play optimally winner