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 = acos(-1.0);
const int MAX = 1e3 + 5;
const int base = 690;
complex<double> point[MAX];
complex<double> u, v;
complex<double> v1, v2;
int n;
double a1, b1, c1;
double a2, b2, c2;
double det, XX1, YY1;
double l[MAX];
double uu[MAX];
int main() {
  scanf("%d", &n);
  if (n < 5)
    printf("No solution\n");
  else {
    u = complex<double>(cos(2.0 * PI / n), sin(2.0 * PI / n));
    v = complex<double>(base, 0.0);
    point[1] = complex<double>(0.0, 0.0);
    for (int i = 2; i <= n - 1; ++i) {
      point[i] = point[i - 1] + v;
      v = v * u;
      v = v * (abs(v) - 0.01) / abs(v);
    }
    v1 = v;
    v2 = v * u;
    a1 = v1.real();
    b1 = v2.real();
    c1 = point[1].real() - point[n - 1].real();
    a2 = v1.imag();
    b2 = v2.imag();
    c2 = point[1].imag() - point[n - 1].imag();
    det = a1 * b2 - a2 * b1;
    XX1 = (c1 * b2 - c2 * b1) / det;
    YY1 = (a1 * c2 - a2 * c1) / det;
    point[n] = point[n - 1] + XX1 * v1;
    point[n + 1] = point[n];
    for (int i = 1; i <= n; ++i)
      printf("%.9f %.9f\n", point[i].real(), point[i].imag());
  }
  return 0;
}