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 eps = 1e-7;
const double pi = acos(-1.0);
struct P {
  double x, y;
  P() {}
  P(double X, double Y) { x = X, y = Y; }
  P operator+(P a) { return P(x + a.x, y + a.y); }
  P operator-(P a) { return P(x - a.x, y - a.y); }
  double operator*(P a) { return x * a.x + y * a.y; }
  double operator%(P a) { return x * a.y - y * a.x; }
  double operator!() { return sqrt(x * x + y * y); }
  P operator*(double a) { return P(x * a, y * a); }
  P rot(double ang) {
    double c = cos(ang), s = sin(ang);
    return P(x * c - y * s, x * s + y * c);
  }
  double operator^(P a) { return atan2((*this) % a, (*this) * a); }
} reg[100100], pol[100100];
int cmp(double a, double b) {
  if (fabs(a - b) <= eps) return 0;
  return (a > b) ? 1 : -1;
}
int n;
int main() {
  scanf("%d", &n);
  reg[0] = P(1, 0);
  srand(5719841);
  for (int i = 1; i < n; i++) {
    reg[i] = reg[i - 1].rot(2.0 * pi / n);
  }
  int cnt = 0;
  while (cnt < 10000) {
    pol[0] = P(0, 0);
    for (int i = 1; i < n - 1; i++) {
      double now;
      do {
        now = rand() / double(RAND_MAX);
        now = now * 100.0;
      } while (cmp(now, 1) <= 0);
      pol[i] = pol[i - 1] + reg[i - 1] * now;
    }
    P vv = pol[0] - pol[n - 2];
    double D = reg[n - 2] % reg[n - 1], Dx = vv % reg[n - 1],
           Dy = reg[n - 2] % vv, x = Dx / D, y = Dy / D;
    if (cmp(D, 0) != 0 && cmp(x, 0) > 0 && cmp(y, 0) > 0) {
      bool pode = true;
      pol[n - 1] = pol[n - 2] + reg[n - 2] * x;
      pol[n] = pol[0];
      for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
          if (cmp(!(pol[i] - pol[i + 1]), !(pol[j] - pol[j + 1])) == 0)
            pode = false;
        }
      }
      for (int i = 0; i < n; i++)
        if (cmp(!(pol[i] - pol[i + 1]), 1) <= 0) pode = false;
      if (pode) break;
    }
    cnt++;
  }
  if (cnt == 10000)
    printf("No solution\n");
  else {
    for (int i = 0; i < n; i++) printf("%.10lf %.10lf\n", pol[i].x, pol[i].y);
  }
  return 0;
}