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