import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int k = Integer.parseInt(br.readLine()); if (k == 0) { System.out.println(1); System.out.println(1); return; } for (int i = 1; i * i <= k; i++) { for (int j = i; i * j <= k && i + j <= 250; j++) { int x = k - i * j; if (x == 0) { output(i, j, 0, 0); return; } for (int a = 1; a * a <= x; a++) { if (x % a == 0) { int b = x / a; if (i + j + a + b <= 250) { output(i, j, a, b); return; } } } } } } static void output(int a, int b, int c, int d) { int n = a + b + c + d; StringBuilder sb = new StringBuilder(); sb.append(n).append("\n"); for (int i = 0; i < a; i++) { if (i > 0) { sb.append(" "); } sb.append(4); } for (int i = 0; i < b; i++) { sb.append(" "); sb.append(9); } for (int i = 0; i < c; i++) { sb.append(" "); sb.append(6); } for (int i = 0; i < d; i++) { sb.append(" "); sb.append(11); } System.out.println(sb); } }