[*1..gets.to_i].combination(2+($$&11)){|x|puts x*' '}