#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3fLL;
const double err = 1e-9;
const int mod = 1e9 + 7;
const int N = 1e5 + 10;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  int k;
  cin >> k;
  vi a;
  a.push_back(-1);
  int n = 2000;
  int s = k + n;
  for (int(i) = (1); (i) < (2000); (i)++) {
    a.push_back(min((int)1e6, s));
    s -= min((int)1e6, s);
  }
  cout << n << endl;
  for (int(i) = (0); (i) < (2000); (i)++) cout << a[i] << ' ';
  return 0;
}
