N,K=map(int,input().split())
if K==1:
    if N==1:
        print("0")
    elif N==2:
        print("10")
    else:
        print(-1)
elif 2*K>N:
    if K==1:
        if N==1:
            print("0")
        else:
            print("10")
    else:
        print("0"+"1"*(K-2)+"0"+"0"*(N-K))
else:
    print(-1)