use proconio::input; fn main() { input! { // Input n:usize }; for i in 0..n { for j in i..n + i { print!("{} ", j % n + 1); } println!(""); } }