#include <bits/stdc++.h>
using namespace std;
char getc() {
  char c = getchar();
  while ((c < 'A' || c > 'Z') && (c < 'a' || c > 'z') && (c < '0' || c > '9'))
    c = getchar();
  return c;
}
int gcd(int n, int m) { return m == 0 ? n : gcd(m, n % m); }
int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9')
    x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
  return x * f;
}
int n;
signed main() {
  n = read();
  for (int i = 1; i <= 10000; i++)
    if ((n + 2000 * i) % 1999 == 0) {
      cout << 2000 << endl;
      for (int j = 1; j <= 1998; j++) cout << 0 << ' ';
      cout << -i << ' ';
      cout << (n + 2000 * i) / 1999;
      return 0;
    }
  return 0;
}
