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;
double pi = 3.14159265358979;
struct pt {
  double x;
  double y;
};
struct line {
  double a;
  double b;
  double c;
};
line to(pt a, pt b) {
  line l;
  l.a = (b.y - a.y);
  l.b = (a.x - b.x);
  l.c = (-a.x * l.a - a.y * l.b);
  return l;
}
pt perec(line l1, line l2) {
  pt o;
  o.y = (l2.c * l1.a - l1.c * l2.a) / (l2.a * l1.b - l1.a * l2.b);
  o.x = (l2.c * l1.b - l1.c * l2.b) / (l2.b * l1.a - l1.b * l2.a);
  return o;
}
double dist(pt a, pt b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(15) << "";
  long long n;
  cin >> n;
  if (n <= 4) {
    cout << "No solution";
    return 0;
  }
  vector<pt> u;
  for (long long i = 0; i < n; ++i) {
    double f = (2.0 * pi * i / (n + 0.0));
    pt z;
    z.x = sin(f);
    z.y = cos(f);
    u.push_back(z);
  }
  vector<line> z;
  for (long long i = 0; i < n; ++i) {
    z.push_back(to(u[i], u[(i + 1) % n]));
  }
  if (n >= 10) {
    for (long long i = 0; i < n; ++i) {
      z[i].c *= 1000;
      z[i].c += (i / (1000.0));
    }
  } else {
    for (long long i = 0; i < n; ++i) {
      z[i].c *= 500;
      z[i].c += (i / (1.0));
    }
  }
  vector<pt> ans(n);
  for (long long i = 0; i < n; ++i) {
    ans[i] = perec(z[i], z[(i + 1) % n]);
  }
  reverse(ans.begin(), ans.end());
  for (long long i = 0; i < n; ++i) {
    cout << ans[i].x << ' ' << ans[i].y << endl;
  }
  return 0;
}