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