#include <bits/stdc++.h>
using namespace std;
const int N = 2500, M = 1000000;
int a[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int k;
  cin >> k;
  if (k <= M) {
    cout << "1\n" << -k << endl;
    return 0;
  }
  int n = 1501, d = 125000;
  while ((k + d) % 1500) {
    ++d;
  }
  int c = d + (k + d) / 1500;
  for (int i = 1; i <= 1500; i += 2) {
    a[i] = 1;
    a[i + 1] = -2;
  }
  a[n - 1] -= (d - 750);
  a[n] = c;
  cout << n << endl;
  for (int i = 1; i <= n; ++i) {
    cout << a[i] << ' ';
  }
  cout << endl;
}
