#include using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) typedef long long ll; typedef pair> point; int main() { const ll N = 1e6; set st; bool ok = false; for (ll i = 1; i <= 1299; ++i) { for (ll j = 1; j <= 1299; ++j) { ll g = gcd(i, j); st.insert({atan2(j / g, i / g), {i / g, j / g}}); if (st.size() == N) { ok = true; break; } if (ok) { break; } } } vector L(st.begin(), st.end()); sort(L.begin(), L.end()); vector> ans; ll nowx = -1e9 + 1, nowy = -1e9 + 1; for (const auto& [_, p] : L) { ll x = p.first, y = p.second; nowx += x; nowy += y; ans.push_back({nowx, nowy}); } cout << N << endl; for (const auto& [x, y] : ans) { cout << x << " " << y << endl; } return 0; }