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