#include <bits/stdc++.h>
using namespace std;
int read() {
  int f = 1;
  int res = 0;
  char ch;
  do {
    ch = getchar();
    if (ch == '-') f = -f;
  } while (ch < '0' || ch > '9');
  do {
    res = res * 10 + ch - '0';
    ch = getchar();
  } while (ch >= '0' && ch <= '9');
  return f == 1 ? res : -res;
}
const int N = 300005;
const int M = 19;
const int MAXNUM = 10;
const long long INF = 2000000000000LL;
int n, m;
int mod = 998244353;
int head[N], nxt[N * 2], to[N * 2], tot;
int main() {
  int k;
  cin >> k;
  int more = k / 1000000;
  int left = k % 1000000;
  int x = left + more + 2;
  if (x > 1000000) {
    x -= 999999;
    more++;
  }
  cout << more + 2 << endl;
  cout << -1 << " ";
  for (int i = 0; i < more; i++) cout << 1000000 << " ";
  cout << x << endl;
  return 0;
}
