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 = 3.1415926535897932384626433832795;
const double eps = 2e-3;
const int maxn = 105;
int n;
double d[maxn];
struct Point {
  double x, y;
  Point(double _x = 0, double _y = 0) : x(_x), y(_y) {}
} pt[maxn];
inline Point operator-(const Point &a, const Point &b) {
  return Point(a.x - b.x, a.y - b.y);
}
inline double Norm(const Point &a) { return sqrt(a.x * a.x + a.y * a.y); }
inline double Det(const Point &a, const Point &b) {
  return a.x * b.y - a.y * b.x;
}
inline int fcmp(const double &a) { return (a > eps) - (a < -eps); }
void Make() {
  int i;
  double thi, a, b;
  thi = 2 * pi / n;
  for (i = 1; i <= n; i++) d[i] = 10000 + rand() % 25;
  d[n + 1] = d[1];
  for (i = 1; i <= n; i++) {
    a = i * thi;
    b = (i - 1) * thi;
    pt[i].x = (d[i + 1] * sin(b) - d[i] * sin(a)) / (-sin(thi));
    if (n > 10)
      pt[i].x /= 10;
    else
      pt[i].x /= 20;
    pt[i].y = (d[i + 1] * cos(b) - d[i] * cos(a)) / sin(thi);
    if (n > 10)
      pt[i].y /= 10;
    else
      pt[i].y /= 20;
  }
}
bool Check() {
  int i, j;
  static double d[maxn];
  pt[0] = pt[n];
  pt[n + 1] = pt[1];
  for (i = 1; i <= n; i++)
    if (fcmp(Det(pt[i] - pt[i - 1], pt[i + 1] - pt[i])) <= 0) return false;
  for (i = 1; i <= n; i++) {
    d[i] = Norm(pt[i + 1] - pt[i]);
    if (fcmp(d[i] - 1000) >= 0) return false;
  }
  for (i = 1; i < n; i++)
    for (j = i + 1; j <= n; j++)
      if (fcmp(d[i] - d[j]) == 0) return false;
  for (i = 1; i <= n; i++) printf("%.3lf %.3lf\n", pt[i].x, pt[i].y);
  return true;
}
int main() {
  scanf("%d", &n);
  srand(n * 10000);
  if (n < 5) {
    printf("No solution\n");
    return 0;
  }
  while (true) {
    Make();
    if (Check()) break;
  }
  return 0;
}