inp = input() n = inp.split()[0] k = inp.split()[1] def hantei(n, k): men_kazu = [] n_int = int(n) k_int = int(k) kai = '' if n_int % k_int == 0: for i in range(n_int // k_int): men_kazu.append(1) for j in range( n_int - (n_int // k_int)): men_kazu.append(j + 2) else: men_kazu.append(-1) for s in men_kazu: kai += str(s) for t in range(len(men_kazu) - 1): kai += ' ' print(kai) hantei(n, k)