use proconio::input; fn main() { input! { n: usize, k: usize, }; if n % k != 0 { println!("-1"); return; } let mut ans = vec![1; n / k]; ans.append(&mut vec![2; n - n / k]); for ch in ans { print!("{} ", ch); } println!(); }