#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, k, d; cin >> n >> k; d = n / k; if(n != d * k){ cout << "-1\n"; return 0; } for(int i = 0; i < n; i++){ if(i < d) cout << '1'; else cout << '2'; cout << (i + 1 == n ? '\n' : ' '); } }