#include <bits/stdc++.h>
using namespace std;
template <class T>
ostream& prnt(ostream& out, T v) {
  out << v.size() << '\n';
  for (auto e : v) out << e << ' ';
  return out;
}
template <class T>
ostream& operator<<(ostream& out, vector<T> v) {
  return prnt(out, v);
}
template <class T>
ostream& operator<<(ostream& out, set<T> v) {
  return prnt(out, v);
}
template <class T1, class T2>
ostream& operator<<(ostream& out, map<T1, T2> v) {
  return prnt(out, v);
}
template <class T1, class T2>
ostream& operator<<(ostream& out, pair<T1, T2> p) {
  return out << '(' << p.first << ' ' << p.second << ')';
}
const int N = 10;
const int MOD = 1000000;
int n, k, m;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> k;
  int N = (k + MOD - 1) / MOD;
  N++;
  cout << N + 1 << '\n';
  cout << -1 << ' ';
  cout << N + 1 << ' ';
  while (k >= MOD) cout << MOD << ' ', k -= MOD;
  if (k) cout << k;
  cout << '\n';
}
