import itertools
def grop(string):
     for k,g in itertools.groupby(string):
          return((str(len(list(g)))+k).replace('1',''),end='')

d79425fa7772b65c9c0cbc62120bb4f888f8a154
import itertools
def grop(string):
     for k,g in itertools.groupby(string):
          return((str(len(list(g)))+k).replace('1',''),end='')
