there n candy row number leave right 1 n the size ith candy a_ialice Bob play interesting tasty game eat candy Alice eat candy leave right Bob right leave the game end candy eatenthe process consist move during player eat sweet herhis Alice eat leave Bob rightalice make during eat 1 candy size a_1 then successive player alternate Bob make second Alice Bob onon player count total size candy eat current once number strictly great total size candy eat player previous current player stop eat end in word player eat small possible number candy sum size candy eat strictly great sum size candy player eat previous if candy way player eat remain candy game endsFor example n11 a31415926535 1 Alice eat candy size 3 sequence candy 1415926535 2 Alice eat 3 previous mean Bob eat 4 Bob eat candy size 5 sequence candy 141592653 3 Bob eat 5 previous mean Alice eat 6 Alice eat candy total size 1416 sequence candy 592653 4 Alice eat 6 previous mean Bob eat 7 Bob eat candy total size 358 sequence candy 5926 5 Bob eat 8 previous mean Alice eat 9 Alice eat candy total size 5914 sequence candy 26 6 Alice eat 14 previous mean Bob eat 15 it impossible Bob eat remain candy game end print number move game number total size sweet eat Alice game b total size sweet eat Bob game