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