n,k = map(int,input().split()) if 2*k < n: print(-1) else: s = "1"*k+"0"*(n-k) print(s)