polycarp friend want visit new restaurant the restaurant n table arrange straight line People sit table the table number 1 n order leave right the state restaurant describe string length n contain character 1 table occupy 0 table emptyrestaurant rule prohibit people sit distance k that person sit table number table number ik ik ith free in word absolute difference number occupy table strictly great kFor example n8 k2 string 10010001 10000010 00000000 00100000 satisfy rule restaurant string 10100100 10011001 11111111 satisfy rule restaurant pair 1 distance equal k2 in particular state restaurant describe stre 1 string 1 requirement restaurant satisfiedyou give binary string s describe current state restaurant it guarantee rule restaurant satisfied string sFind maximum number free table occupy violate rule restaurant formally maximum number 0 replace 1 requirement satisfiedfor example n6 k1 s100010 answer problem 1 table position 3 occupy rule satisfy