n = io.read("*n") if(n % 3 == 0) then n = n - 2 io.write("3 3") elseif(n % 3 == 1) then n = n - 3 io.write("3 3 3") else n = n - 1 io.write("3") end for i = 1, n, 1 do io.write(" 1") end