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>
const double PI = acos(0) * 2;
using namespace std;
const int MaxN = 111;
double px[MaxN], py[MaxN];
double dist(int i, int j) {
  return sqrt((px[i] - px[j]) * (px[i] - px[j]) +
              (py[i] - py[j]) * (py[i] - py[j]));
}
double ang(int i, int j, int k) {
  double a = dist(i, j), b = dist(j, k), c = dist(k, i);
  return acos((c * c - a * a - b * b) / 2 / a / b);
}
int main(void) {
  int n;
  while (scanf("%d", &n) != EOF) {
    int i;
    if (n < 5) {
      printf("No solution\n");
      continue;
    }
    double side = 600, eps = 0.1;
    double angle = PI * 2.0 / n, curangle = 0;
    px[0] = py[0] = 0;
    if (n >= 50) eps = 0.01;
    for (i = 1; i < n; i++) {
      px[i] = px[i - 1] + side * cos(curangle);
      py[i] = py[i - 1] + side * sin(curangle);
      curangle += angle;
      side += eps;
    }
    px[n] = px[n - 1] + 2 * side * cos(curangle);
    py[n] = py[n - 1] + 2 * side * sin(curangle);
    double teps = 100;
    for (i = 0; i < 50; i++) {
      for (int j = 0; j < 50; j++) {
        double d = dist(0, n) + dist(0, n - 1) - dist(n, n - 1);
        double tpx = px[0];
        px[0] += teps * ((rand() % 2) ? 1 : -1);
        if (d < dist(0, n) + dist(0, n - 1) - dist(n, n - 1)) px[0] = tpx;
      }
      teps /= 2;
    }
    for (i = 0; i < n; i++) {
      printf("%.6lf %.6lf\n", px[i], py[i]);
    }
  }
  return 0;
}