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 double pi = atan2(0, -1);
const int N = 200;
int i, j, k, l, m, n, o, p;
double len, Sin, Cos, aph, xx, yy, dx, dy, l1, l2, c1, c2, s1, s2, dt;
struct Point {
  double x, y;
  Point() {}
  Point(double X, double Y) {
    x = X;
    y = Y;
  }
} P[N], d[N];
int main() {
  cin >> n;
  if (n <= 4)
    puts("No solution");
  else {
    aph = (2.0 * pi / (double)(n));
    Sin = sin(aph);
    Cos = cos(aph);
    d[1] = Point(Cos, Sin);
    for (i = 2; i <= n; i++) {
      xx = d[i - 1].x;
      yy = d[i - 1].y;
      d[i].x = Cos * xx - yy * Sin;
      d[i].y = Sin * xx + yy * Cos;
    }
    dx = dy = 0.0;
    for (i = 1; i <= n - 2; i++) {
      dt = (double)i;
      dt *= 1e-2;
      len = 300.0 + dt;
      P[i].x = d[i].x * len;
      P[i].y = d[i].y * len;
      dx += P[i].x;
      dy += P[i].y;
    }
    c1 = d[n - 1].x;
    s1 = d[n - 1].y;
    c2 = d[n].x;
    s2 = d[n].y;
    l2 = (-dx * s1 + dy * c1) / (c2 * s1 - c1 * s2);
    l1 = (-dx - l2 * c2) / c1;
    P[n - 1].x = d[n - 1].x * l1;
    P[n - 1].y = d[n - 1].y * l1;
    P[n].x = d[n].x * l2;
    P[n].y = d[n].y * l2;
    xx = 0.0;
    yy = 0.0;
    for (i = 1; i <= n; i++) {
      xx += P[i].x;
      yy += P[i].y;
      printf("%.7lf %.7lf\n", xx, yy);
    }
  }
  fclose(stdout);
  return 0;
}