#include <bits/stdc++.h>
using namespace std;
const int maxn = 5000 + 7;
const int mod = 998244353;
int k;
int main() {
  scanf("%d", &k);
  printf("2000\n");
  printf("-1");
  int v = k + 1;
  for (int i = 1; i <= 1999; i++) {
    int res;
    if (v >= 1e6 - 1)
      res = 1e6, v -= 1e6 - 1;
    else if (v > 0)
      res = v + 1, v = 0;
    else
      res = 1;
    printf(" %d", res);
  }
  printf("\n");
  return 0;
}
