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 = acos(-1.0);
long double len[105];
const long double eps = 1e-1;
int n;
int main() {
  srand(time(0));
  ios_base::sync_with_stdio(false);
  cin >> n;
  if (n == 3 || n == 4) {
    cout << "No solution";
    return 0;
  }
  while (1) {
    complex<long double> w(cos(2 * pi / n), sin(2 * pi / n));
    complex<long double> st = 0;
    complex<long double> ang = 1;
    for (int i = 0; i <= n - 3; i++) {
      len[i] = rand() % 1000;
      while (len[i] < eps) {
        len[i] = (rand() % 998) + 1;
      }
      st += ang * len[i];
      ang = ang * w;
    }
    complex<long double> ang1 = ang;
    complex<long double> ang2 = ang * w;
    long double ne1 = real(-st);
    long double ne2 = imag(-st);
    long double x1 = real(ang1);
    long double x2 = real(ang2);
    long double y1 = imag(ang1);
    long double y2 = imag(ang2);
    long double a = (ne1 * y2 - ne2 * x2) / (x1 * y2 - y1 * x2);
    long double b = (ne1 * y1 - ne2 * x1) / (x2 * y1 - x1 * y2);
    bool ok = true;
    if (a <= 1 || b <= 1 || a >= 1000 || b >= 1000) continue;
    len[n - 2] = a;
    len[n - 1] = b;
    for (int i = 0; i <= n - 1; i++) {
      for (int j = i + 1; j <= n - 1; j++) {
        if (abs(len[i] - len[j]) < 0.005) {
          ok = false;
          break;
        }
      }
    }
    if (ok == false) continue;
    st = 0;
    ang = 1;
    for (int i = 0; i <= n - 1; i++) {
      cout << fixed << setprecision(5) << real(st) << " " << imag(st) << '\n';
      st += ang * len[i];
      ang = ang * w;
    }
    break;
  }
  return 0;
}