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