let () =
  Scanf.scanf "%d" @@ fun k ->
  let n = 50 in
  let d, r = k / n, k mod n in
  Printf.printf "%d\n" n;
  for i = 0 to n-1 do
    (if i < r then n+d else n+d-1-r) |> Printf.printf "%d "
  done;
  print_newline ()