a = map(int, raw_input().split()) def rearrange(li): val = len(li)-1 for i in range(len(li)): if li[i]>0 and i