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 = 3.14159265358979323846;
long double sqr(long double x) { return x * x; }
long double rnd() { return rand() * 0.01 / RAND_MAX; }
long double a[202], b[202], c[202], p[202], q[202], r[202];
int n;
void cross(long double a, long double b, long double c, long double d,
           long double e, long double f, long double &x, long double &y) {
  x = (c * e - b * f) / (a * e - b * d);
  y = (c * d - a * f) / (b * d - a * e);
}
void line(long double x, long double y, long double z, long double w,
          long double &a, long double &b, long double &c) {
  a = y - w;
  b = z - x;
  c = w * x - z * y;
}
long double det(long double x1, long double y1, long double x2,
                long double y2) {
  return x1 * y2 - x2 * y1;
}
int check() {
  int i;
  for (i = 0; i < n; i++)
    cross(a[i], b[i], c[i], a[(((i) + 1) % n)], b[(((i) + 1) % n)],
          c[(((i) + 1) % n)], p[i], q[i]);
  for (i = 0; i < n; i++)
    r[i] = sqr(p[i] - p[(((i) + 1) % n)]) + sqr(q[i] - q[(((i) + 1) % n)]);
  sort(r, r + n);
  if (r[0] < 1) return 0;
  for (i = 1; i < n; i++)
    if (r[i] < r[i - 1] + 0.05) return 0;
  for (i = 0; i < n; i++)
    if (det(p[i] - p[(((i) + 1) % n)], q[i] - q[(((i) + 1) % n)],
            p[((((((i) + 1) % n)) + 1) % n)] - p[(((i) + 1) % n)],
            q[((((((i) + 1) % n)) + 1) % n)] - q[(((i) + 1) % n)]) > 0)
      return c[(((i) + 1) % n)] += rnd(), 0;
  return 1;
}
int main() {
  int i;
  srand(1999031603);
  cout.setf(ios::fixed);
  cout.precision(10);
  scanf("%d", &n);
  if (n == 3 || n == 4) {
    printf("No solution");
    return 0;
  }
  for (i = 0; i < n; i++)
    p[i] = n * cos(i * 2 * pi / n), q[i] = n * sin(i * 2 * pi / n);
  for (i = 0; i < n; i++)
    line(p[i], q[i], p[(((i) + 1) % n)], q[(((i) + 1) % n)], a[i], b[i], c[i]);
  for (i = 0; i < n; i++) c[i] += rnd() * 100;
  do {
    for (i = 0; i < n; i++)
      if (c[i] > 0)
        c[i] += rnd();
      else
        c[i] -= rnd();
  } while (!check());
  for (i = 0; i < n; i++) cout << p[i] << " " << q[i] << endl;
  return 0;
}