// #include #include using namespace std; using namespace atcoder; using ll = long long; #define rep(i, n) for (int i=0; i<(int)(n); ++(i)) #define rep3(i, m, n) for (int i=(m); (i)<(int)(n); ++(i)) #define repr(i, n) for (int i=(int)(n)-1; (i)>=0; --(i)) #define rep3r(i, m, n) for (int i=(int)(n)-1; (i)>=(int)(m); --(i)) #define all(x) (x).begin(), (x).end() const double PI = acos(-1); const int INF = (int)(1e9); int main() { int n = 8; vector> xy; const double d = 2.0*PI / n; for (const pair pi : vector>({ { INF, 0 }, { 0, INF }, { -INF, 0 }, { 0, -INF } })) { double x = pi.first, y = pi.second; xy.emplace_back((int)(round(x)), (int)(round(y))); rep(i, n/4-1) { double nx = cos(d) * x - sin(d) * y, ny = sin(d) * x + cos(d) * y; xy.emplace_back((int)(round(nx)), (int)(round(ny))); x = nx, y = ny; } } cout << n << endl; rep(i, n) cout << xy[i].first << ' ' << xy[i].second << endl; cout.flush(); return 0; }