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(-1.0);
const int N = 100;
const double EPS = 1e-8;
int n;
double length[N];
std::complex<double> dirs[N];
int signum(double x) { return x < -EPS ? -1 : x > EPS; }
bool valid() {
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < i; ++j) {
      if (signum(length[i] - length[j]) == 0) {
        return false;
      }
    }
  }
  return true;
}
double dot(const std::complex<double> &a, const std::complex<double> &b) {
  return a.real() * b.real() + a.imag() * b.imag();
}
int main() {
  scanf("%d", &n);
  if (n <= 4) {
    puts("No solution");
  } else {
    double theta = 2 * PI / n;
    std::complex<double> delta = 0;
    for (int i = 0; i < n; ++i) {
      dirs[i] = std::complex<double>(cos(theta * i), sin(theta * i));
      length[i] = (double)rand() / RAND_MAX;
      delta += dirs[i] * length[i];
    }
    while (signum(delta.imag()) != 0) {
      int i = rand() % n;
      if (signum(dirs[i].imag()) == 0) {
        continue;
      }
      double d = -delta.imag() / dirs[i].imag();
      if (0 < length[i] + d) {
        length[i] += d;
        delta += dirs[i] * d;
      }
    }
    while (signum(delta.real()) != 0) {
      int i = rand() % n;
      if (signum(dirs[i].real()) == 0) {
        continue;
      }
      int j = (n - i) % n;
      double d = -delta.real() / dirs[i].real() / 2;
      if (0 < length[i] + d && 0 < length[j] + d) {
        length[i] += d;
        length[j] += d;
        delta += dirs[i] * d;
        delta += dirs[j] * d;
      }
    }
    std::complex<double> now;
    for (int i = 0; i < n; ++i) {
      length[i] += 1.0;
      length[i] *= 10.0;
      printf("%.8f %.8f\n", now.real(), now.imag());
      now += length[i] * dirs[i];
    }
  }
  return 0;
}