little Petya like play little Masha recently receive game call ZeroOne gift mother Petya immediately offer Masha play game himbefore begin game card lain table line leave right each card contain digit 0 1 Players turn Masha move during player remove card table shift card close gap leave remove card for example somebodys card table form sequence 01010101 fourth card remove card number start 1 sequence look like 0100101 the game end exactly card leave table the digits card determine number binary notation significant bit locate leave Mashas aim minimize number Petyas aim maximize itan unpleasant accident occur game start the kid spill juice card digit card got blur each spoiled card 0 1 write consider possible variants initial arrangement digit juice spill for variant let find card leave end game assume Petya Masha play optimally an ordered pair digit write card call outcome your task find set outcomes variants initial digit arrangement