#include #include #include #include #define llint long long #define inf 1e18 #define mod 1000000007 using namespace std; llint x; llint h, w, k; char op; llint a[100005], b[100005]; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> x; h = 100000, k = 1000000000; op = '*'; if(x % h == 0) h--; w = (x+h-1)/h; for(int i = 1; i <= x/h; i++) b[i] = k; b[x/h+1] = 1; for(int i = 1; i <= x%h; i++) a[i] = k; llint rem = k-x; if(rem < h-x%h) rem += h; a[x%h+1] = k - (rem-(h-x%h-1)); for(int i = x%h+2; i <= h; i++) a[i] = k-1; cout << h << " " << w << " " << k << endl; cout << op; for(int i = 1; i <= w; i++) cout << " " << b[i]; cout << endl; for(int i = 1; i <= h; i++) cout << a[i] << endl; return 0; }