#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  int k;
  cin >> k;
  int n = 2000;
  k += n;
  int arr[n];
  arr[0] = -1;
  for (int i = 1; i < 2000; i++) {
    if (k >= 1000000)
      arr[i] = 1000000;
    else
      arr[i] = k;
    k -= arr[i];
  }
  cout << 2000 << '\n';
  for (int i = 0; i < 2000; i++) cout << arr[i] << ' ';
}
