[*1..a=gets.to_i].combination(/7/?2:a-a%3){|x|puts x*' '}