Problem: Polycarpus loves convex polygons, especially if all their angles are the same and all their sides are different. Draw for him any such polygon with the given number of vertexes.

Input

The input contains a single integer n (3 ≤ n ≤ 100) — the number of the polygon vertexes.

Output

Print n lines, containing the coordinates of the vertexes of the n-gon "xi yi" in the counter clockwise order. The coordinates of the vertexes shouldn't exceed 106 in their absolute value. The side lengths should fit within limits [1, 1000] (not necessarily integer). Mutual comparing sides and angles of your polygon during the test will go with precision of 10 - 3.

If there is no solution, print "No solution" (without the quotes).

Examples

Input

8


Output

1.000 0.000
7.000 0.000
9.000 2.000
9.000 3.000
5.000 7.000
3.000 7.000
0.000 4.000
0.000 1.000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const long double pi = acosl(0) * 2;
int cnt = 1;
vector<int> u;
void prm() {
  for (int i = 1; i <= 10000; i++) {
    bool h = 0;
    for (int j = 2; j * j <= i; j++) {
      if (i % j == 0) {
        h = 1;
        break;
      }
    }
    if (!h) {
      u.push_back(i);
    }
  }
  random_shuffle(u.begin(), u.begin() + 200);
}
long double rax() {
  double ret = 1.3 * cnt;
  cnt++;
  return ret;
}
pair<long double, long double> sub(pair<long double, long double> a,
                                   pair<long double, long double> b) {
  return {a.first - b.first, a.second - b.second};
}
pair<long double, long double> add(pair<long double, long double> a,
                                   pair<long double, long double> b) {
  return {a.first + b.first, a.second + b.second};
}
pair<long double, long double> mul(pair<long double, long double> a, double k) {
  return {a.first * k, a.second * k};
}
long double dis2(pair<long double, long double> a,
                 pair<long double, long double> b = {0, 0}) {
  return (a.first - b.first) * (a.first - b.first) +
         (a.second - b.second) * (a.second - b.second);
}
void make(pair<long double, long double> a, pair<long double, long double> &b,
          pair<long double, long double> &c, pair<long double, long double> d) {
  long double del = (rax());
  b = add(b, mul(sub(b, a), del / sqrtl(dis2(b, a))));
  c = add(c, mul(sub(c, d), del / sqrtl(dis2(c, d))));
}
double cross(pair<long double, long double> a,
             pair<long double, long double> b) {
  return a.first * b.second - a.second * b.first;
}
double sang(pair<long double, long double> a, pair<long double, long double> b,
            pair<long double, long double> c) {
  c = sub(c, b);
  a = sub(a, b);
  long double cx = cross(a, c);
  return asin(cx / (sqrtl(dis2(a) * dis2(c)))) * 180 / pi;
}
int main() {
  int n;
  prm();
  cin >> n;
  if (n <= 4) {
    cout << "No solution\n";
    return 0;
  }
  long double a = 100.0 * n;
  vector<pair<long double, long double> > poly;
  for (int i = 0; i < n; i++) {
    poly.push_back({a * cosl(2 * i * pi / n), a * sinl(2 * i * pi / n)});
  }
  for (int i = 0; i < n; i++) {
    make(poly[i], poly[(i + 1) % n], poly[(i + 2) % n], poly[(i + 3) % n]);
  }
  vector<double> D;
  for (int i = 0; i < n; i++) {
    D.push_back(sqrtl(dis2(poly[i], poly[(i + 1) % n])));
  }
  sort(D.begin(), D.end());
  double kek = 1;
  for (int i = 0; i < n - 1; i++) {
    kek = min(D[i + 1] - D[i], kek);
  }
  for (int i = 0; i < n; i++) {
    cout << fixed << setprecision(10) << poly[i].first / 5 << ' '
         << poly[i].second / 5 << endl;
  }
  return 0;
}