n = gets.to_i ans = Array.new(n,1) ans[0] = 3 ans[1] += 2-n%3 puts ans.join(" ")