MOD=10**9+7 a=int(input()) b=input() n=len(b) ans=0 tmp=0 curr=1 for i in range(n): k=int(b[n-1-i]) if i