#include <bits/stdc++.h>
using namespace std;
//#define cerr if (false) cerr
#define db(x) cerr << #x << "=" << x << endl
#define db2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl
#define db3(x, y, z) cerr << #x << "=" << x << "," << #y << "=" << y << "," << #z << "=" << z << endl
#define dbv(v) cerr << #v << "="; for (auto _x : v) cerr << _x << ", "; cerr << endl
#define dba(a, n) cerr << #a << "="; for (int _i = 0; _i < (n); ++_i) cerr << a[_i] << ", "; cerr << endl
template <typename A, typename B>
ostream& operator<<(ostream& os, const pair<A, B>& x) {
	return os << "(" << x.first << "," << x.second << ")";
}
typedef long long ll;
typedef long double ld;
int main() {
	ll k;
	scanf("%lld", &k);
	ll n = 50;
	printf("%lld\n", n);
	ll r = k % n;
	for (int i = 0; i < n; ++i) {
		printf("%lld ", i + k / n + (i >= n - r) );
	}
}

#include <bits/stdc++.h>
using namespace std;
#define ll int64_t

const ll MX=1E16+1000;

int main() {
	ios_base::sync_with_stdio(0);cin.tie(0);
	ll k;
	cin>>k;
	ll n=50;
	cout<<n<<'\n';
	vector<ll> res(n);
	for(int i=0;i<n;++i) res[i]=i+(k/n);
	for(int i=0;i<k%n;++i)
		for(int j=0;j<n;++j)
			if(j==i) res[j]+=n;
			else res[j]--;
	for(ll x:res) cout<<x<<' ';
	cout<<endl;
}


