#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  cin.tie(nullptr)->sync_with_stdio(false);
  solve();
}
void solve() {
  int K;
  cin >> K;
  vector<int> A = {-1};
  int sum = -1;
  0;
  while (sum < int(K - 1 + A.size())) {
    int delta = min<int>(1e6, K + A.size() - sum);
    0;
    sum += delta;
    A.push_back(delta);
  }
  cout << A.size() << "\n";
  for (int x : A) {
    cout << x << " ";
  }
}
