#include <bits/stdc++.h>
const double Pi = 3.14159265;
const int N = 6e5 + 10;
const unsigned long long base = 163;
const int INF = 0x3f3f3f3f;
const int mod = (int)1e9 + 7;
using namespace std;
int p;
int main() {
  cin >> p;
  for (int i = 2; i <= 2000; ++i) {
    if ((i - 1) * 1000000 - 1 >= p) {
      int all = p - 1 + i;
      all++;
      int now = all / (i - 1);
      if (now > 1000000 || all - (i - 2) * now > 1000000) continue;
      cout << i << endl;
      cout << -1 << " ";
      for (int j = 1; j <= i - 2; ++j) {
        cout << now << " ";
        all -= now;
      }
      if (all) cout << all << endl;
      break;
    }
  }
  return 0;
}
