#include using namespace std; using ll = long long; using P = pair; #define fix(x) fixed << setprecision(x) #define asc(x) x, vector, greater #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() templatebool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} templatebool chmax(T&a, const T&b){if(a1){ ll md = (ok + ng) / 2; if(md*(md+3)/2<=1e9) ok = md; else ng = md; } cout << ok * 8 << '\n'; int x = -1e9, y = -1; cout << x << " " << y << '\n'; y += 2; rep(i,ok-1){ cout << x << " " << y << '\n'; x++; y += ok-i; } rep(i,ok){ cout << x << " " << y << '\n'; x += i+1; y++; } cout << x << " " << y << '\n'; x += 2; rep(i,ok-1){ cout << x << " " << y << '\n'; x += ok-i; y--; } rep(i,ok){ cout << x << " " << y << '\n'; x++; y -= i+1; } cout << x << " " << y << '\n'; y -= 2; rep(i,ok-1){ cout << x << " " << y << '\n'; x--; y -= ok-i; } rep(i,ok){ cout << x << " " << y << '\n'; x -= i+1; y--; } cout << x << " " << y << '\n'; x -= 2; rep(i,ok-1){ cout << x << " " << y << '\n'; x -= ok-i; y++; } rep(i,ok){ cout << x << " " << y << '\n'; x--; y += i+1; } cout << flush; return 0; }