n=input() assert n[-1]!=" " n=int(n) assert 2<=n<=10**5 s=input() assert len(s)==n assert n!=s.count("0")+s.count("1")