#include using namespace std; typedef long long ll; typedef pair pii; typedef vector vi; #define RIDLs_code ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define fi1(x) for(int i=1;i<=x;++i) #define fi0(x) for(int i=0;i=end;--elem) #define all(x) (x).begin(), (x).end() #define pb push_back const int MOD = 1e9+7; const int INF = 0x3f3f3f3f; void solve(){ int n, k; cin>>n>>k; if(n%k!=0){ cout<<"-1"; } else{ int num1=n/k; fi1(num1){ cout<<"1 "; } fi1(n-num1){ cout<<"2 "; } } return; } int main(){ RIDLs_code int T=1; // cin>>T; while (T--) solve(); return 0; }