let () = Scanf.scanf "%d" (fun k ->
  print_endline "50";
  for i = 0 to 49 do
    Printf.printf "%d " @@
      if i < k mod 50 then 51 + i - k mod 50 + k / 50
      else i - k mod 50 + k / 50
  done)