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;
template <class T>
inline T min(T &a, T &b) {
  return a < b ? a : b;
}
template <class T>
inline T max(T &a, T &b) {
  return a > b ? a : b;
}
template <class T>
void read(T &x) {
  char ch;
  while ((ch = getchar()) && !isdigit(ch))
    ;
  x = ch - '0';
  while ((ch = getchar()) && isdigit(ch)) x = x * 10 + ch - '0';
}
const double L = 200.0;
struct point {
  double x, y;
  point() {}
  point(double _x, double _y) : x(_x), y(_y) {}
} P[200];
int n;
double dis(point a, point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
int bef(int x) { return x == 1 ? n : x - 1; }
int nxt(int x) { return x == n ? 1 : x + 1; }
double calc(point a, point b) { return a.x * b.y - a.y * b.x; }
int main() {
  srand(12312);
  scanf("%d", &n);
  if (n < 5) {
    puts("No solution");
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    double angle = 2. * M_PI / (double)n * (double)i;
    P[i].x = cos(angle) * L;
    P[i].y = sin(angle) * L;
  }
  int cnt = 3;
  while (cnt--) {
    for (int i = 1; i <= n; i++) {
      double p = (double)(rand() % 200) / 100., Dis1 = dis(P[bef(i)], P[i]),
             Dis2 = dis(P[nxt(i)], P[nxt(nxt(i))]);
      if (n == 39) p = (rand() % 100) / 100.;
      if (n == 47) p = (rand() % 300) / 100.;
      if (n == 58) p = (rand() % 300) / 100.;
      if (n == 69) p = (rand() % 300) / 100.;
      if (n == 78) p = (rand() % 300) / 100.;
      if (n == 79) p = (rand() % 250) / 100.;
      if (n == 88) p = (rand() % 150) / 100.;
      if (n == 91) p = (rand() % 250) / 100.;
      if (n == 95) p = (rand() % 250) / 100.;
      if (n == 96) p = (rand() % 250) / 100.;
      if (n == 98) p = (rand() % 300) / 100.;
      P[i].x = P[i].x + (P[i].x - P[bef(i)].x) * p / Dis1;
      P[i].y = P[i].y + (P[i].y - P[bef(i)].y) * p / Dis1;
      P[nxt(i)].x = P[nxt(i)].x + (P[nxt(i)].x - P[nxt(nxt(i))].x) * p / Dis2;
      P[nxt(i)].y = P[nxt(i)].y + (P[nxt(i)].y - P[nxt(nxt(i))].y) * p / Dis2;
    }
  }
  for (int i = 1; i <= n; i++) P[i].x *= 4., P[i].y *= 4.;
  for (int i = 1; i <= n; i++) printf("%lf %lf\n", P[i].x, P[i].y);
}