Recently Ivan bought a new computer. Excited, he unpacked it and installed his favourite game. With his old computer Ivan had to choose the worst possible graphic settings (because otherwise the framerate would be really low), but now he wants to check, maybe his new computer can perform well even with the best possible graphics?

There are m graphics parameters in the game. i-th parameter can be set to any positive integer from 1 to ai, and initially is set to bi (bi ≤ ai). So there are <image> different combinations of parameters. Ivan can increase or decrease any of these parameters by 1; after that the game will be restarted with new parameters (and Ivan will have the opportunity to check chosen combination of parameters).

Ivan wants to try all p possible combinations. Also he wants to return to the initial settings after trying all combinations, because he thinks that initial settings can be somehow best suited for his hardware. But Ivan doesn't really want to make a lot of restarts.

So he wants you to tell the following:

  * If there exists a way to make exactly p changes (each change either decreases or increases some parameter by 1) to try all possible combinations and return to initial combination, then Ivan wants to know this way. 
  * Otherwise, if there exists a way to make exactly p - 1 changes to try all possible combinations (including the initial one), then Ivan wants to know this way. 



Help Ivan by showing him the way to change parameters!

Input

The first line of input contains one integer number m (1 ≤ m ≤ 6).

The second line contains m integer numbers a1, a2, ..., am (2 ≤ ai ≤ 1000). It is guaranteed that <image>.

The third line contains m integer numbers b1, b2, ..., bm (1 ≤ bi ≤ ai).

Output

If there is a way to make exactly p changes (each change either decreases or increases some parameter by 1) to try all possible combinations and return to initial combination, then output Cycle in the first line. Then p lines must follow, each desribing a change. The line must be either inc x (increase parameter x by 1) or dec x (decrease it).

Otherwise, if there is a way to make exactly p - 1 changes to try all possible combinations (including the initial one), then output Path in the first line. Then p - 1 lines must follow, each describing the change the same way as mentioned above.

Otherwise, output No.

Examples

Input

1
3
1


Output

Path
inc 1
inc 1


Input

1
3
2


Output

No


Input

2
3 2
1 1


Output

Cycle
inc 1
inc 1
inc 2
dec 1
dec 1
dec 2
#include <bits/stdc++.h>
using namespace std;
int M, R, C, S, T, a[8], b[8], id[8];
vector<vector<vector<int> > > ver;
void createVer(int prod, int cur) {
  if (cur == M) return;
  for (int i = 1; i <= (int)(a[0]); ++i)
    for (int j = 1; j <= (int)(prod); ++j) {
      ver[i][j][cur] = 1;
    }
  for (int k = 2; k <= a[cur]; ++k) {
    for (int i = 1; i <= (int)(a[0]); ++i) {
      int tmp = ver[i].size();
      for (int j = tmp - 1; j >= tmp - prod; --j) ver[i].push_back(ver[i][j]);
    }
    for (int i = 1; i <= (int)(a[0]); ++i)
      for (int j = ver[1].size() - prod; j < ver[1].size(); ++j) {
        ver[i][j][cur] = k;
      }
  }
  createVer(prod * a[cur], cur + 1);
}
void print(int r1, int c1, int r2, int c2) {
  for (int k = 0; k < (int)(M); ++k)
    if (ver[r1][c1][k] != ver[r2][c2][k]) {
      if (ver[r1][c1][k] < ver[r2][c2][k])
        printf("inc %d\n", id[k] + 1);
      else
        printf("dec %d\n", id[k] + 1);
    }
}
void rightRotate(int& s, int& t) {
  vector<vector<vector<int> > > new_ver(
      C + 1, vector<vector<int> >(R + 1, vector<int>(M)));
  for (int i = 1; i <= (int)(R); ++i)
    for (int j = 1; j <= (int)(C); ++j) {
      new_ver[j][R - i + 1] = ver[i][j];
    }
  swap(s, t);
  t = R - t + 1;
  swap(R, C);
  ver = new_ver;
}
void solve_corner(int s, int t) {
  int dx, dy;
  dx = s == 1 ? 1 : -1;
  for (;; s += dx) {
    dy = t == 1 ? 1 : -1;
    for (;; t += dy) {
      if (t + dy > C || t + dy < 1) break;
      print(s, t, s, t + dy);
    }
    if (s + dx > R || s + dx < 1) break;
    print(s, t, s + dx, t);
  }
}
void solve_border(int s, int t) {
  while (t != 1) rightRotate(s, t);
  S = s, T = t;
  int dx, dy;
  dx = -1;
  for (;; s += dx) {
    dy = t == 1 ? 1 : -1;
    for (;; t += dy) {
      if (t + dy >= C || t + dy < 1) break;
      print(s, t, s, t + dy);
    }
    if (s + dx < 1) break;
    print(s, t, s + dx, t);
  }
  print(s, t, s, t + 1);
  t++;
  while (s <= S) print(s, t, s + 1, t), s++;
  dx = 1;
  for (;; s += dx) {
    dy = t == 1 ? 1 : -1;
    for (;; t += dy) {
      if (t + dy > C || t + dy < 1) break;
      print(s, t, s, t + dy);
    }
    if (s + dx > R) break;
    print(s, t, s + dx, t);
  }
}
void solve_odd(int s, int t) {
  S = s, T = t;
  int dx, dy;
  while (s < R) print(s, t, s + 1, t), s++;
  print(s, t, s, t - 1);
  t--;
  dx = -1;
  for (;; s += dx) {
    dy = t == 1 ? 1 : -1;
    for (;; t += dy) {
      if (t + dy >= T || t + dy < 1) break;
      print(s, t, s, t + dy);
    }
    if (s + dx < S) break;
    print(s, t, s + dx, t);
  }
  print(s, t, s - 1, t);
  s--;
  dy = 1;
  for (;; t += dy) {
    dx = s == 1 ? 1 : -1;
    for (;; s += dx) {
      if (s + dx >= S || s + dx < 1) break;
      print(s, t, s + dx, t);
    }
    if (t + dy > T) break;
    print(s, t, s, t + dy);
  }
  print(s, t, s, t + 1);
  t++;
  for (;; t += dy) {
    dx = s == 1 ? 1 : -1;
    for (;; s += dx) {
      if (s + dx > R || s + dx < 1) break;
      print(s, t, s + dx, t);
    }
    if (t + dy > C) break;
    print(s, t, s, t + dy);
  }
}
void solve_even(int s, int t) {
  S = s, T = t;
  int dx, dy;
  dy = -1;
  for (;; t += dy) {
    dx = s == R ? -1 : 1;
    for (;; s += dx) {
      if (s + dx < S || s + dx > R) break;
      print(s, t, s + dx, t);
    }
    if (t + dy < 1) break;
    print(s, t, s, t + dy);
  }
  while (s > 1) print(s, t, s - 1, t), s--;
  print(s, t, s, t + 1), t++;
  dx = 1;
  for (;; s += dx) {
    dy = t == 2 ? 1 : -1;
    for (;; t += dy) {
      if (t + dy > T + 1 || t + dy < 2) break;
      print(s, t, s, t + dy);
    }
    if (s + dx == S) break;
    print(s, t, s + dx, t);
  }
  while (s < R) print(s, t, s + 1, t), s++;
  if (t == C) return;
  print(s, t, s, t + 1), t++;
  dy = 1;
  for (;; t += dy) {
    dx = s == 1 ? 1 : -1;
    for (;; s += dx) {
      if (s + dx < 1 || s + dx > R) break;
      print(s, t, s + dx, t);
    }
    if (t + dy > C) break;
    print(s, t, s, t + dy);
  }
}
void solve_path(int s, int t) {
  printf("Path\n");
  if ((s == 1 || s == R) && (t == 1) || (t == C))
    solve_corner(s, t);
  else if (s == 1 || s == R || t == 1 || t == C)
    solve_border(s, t);
  else if (s & 1)
    solve_odd(s, t);
  else
    solve_even(s, t);
}
void solve_cycle(int s, int t) {
  printf("Cycle\n");
  while (C & 1 || s == 1) rightRotate(s, t);
  S = s, T = t;
  int dx, dy;
  if (T == 1) goto NEXT;
  if (T & 1) print(s, t, s, t - 1), t--;
  dy = -1;
  for (;; t += dy) {
    dx = s == R ? -1 : 1;
    for (;; s += dx) {
      if (s + dx > R || s + dx < S) break;
      print(s, t, s + dx, t);
    }
    if (t + dy < 1) break;
    print(s, t, s, t + dy);
  }
NEXT:
  print(s, t, s - 1, t);
  s--;
  dy = 1;
  for (;; t += dy) {
    dx = s == 1 ? 1 : -1;
    for (;; s += dx) {
      if (s + dx >= S || s + dx < 1) break;
      print(s, t, s + dx, t);
    }
    if (t + dy > C) break;
    print(s, t, s, t + dy);
  }
  print(s, t, s + 1, t), s++;
  dy = -1;
  for (;; t += dy) {
    if (t == T && (T & 1) == 0) break;
    dx = s == R ? -1 : 1;
    for (;; s += dx) {
      if (s + dx > R || s + dx < S) break;
      print(s, t, s + dx, t);
    }
    if (t + dy < T) break;
    print(s, t, s, t + dy);
  }
}
int main() {
  scanf("%d", &M);
  for (int i = 0; i < (int)(M); ++i) scanf("%d", &a[i]);
  for (int i = 0; i < (int)(M); ++i) scanf("%d", &b[i]);
  if (M == 1) {
    if (a[0] == 2) {
      printf("Cycle\n");
      printf("%s", b[0] == 1 ? "inc 1\ndec 1\n" : "dec 1\ninc 1\n");
    } else if (b[0] == 1 || b[0] == a[0]) {
      printf("Path\n");
      for (int i = 0; i < (int)(a[0] - 1); ++i)
        printf("%s", b[0] == 1 ? "inc 1\n" : "dec 1\n");
    } else {
      printf("No\n");
    }
    return 0;
  }
  for (int i = 0; i < (int)(M); ++i) id[i] = i;
  for (int i = 0; i < (int)(M); ++i)
    if ((a[i] & 1) == 0) {
      swap(a[i], a[0]), swap(b[i], b[0]);
      swap(id[i], id[0]);
      break;
    }
  ver.resize(a[0] + 1, vector<vector<int> >(a[1] + 1, vector<int>(M, 0)));
  for (int i = 1; i <= (int)(a[0]); ++i)
    for (int j = 1; j <= (int)(a[1]); ++j) {
      ver[i][j][0] = i, ver[i][j][1] = j;
    }
  createVer(a[1], 2);
  R = a[0], C = ver[1].size() - 1;
  int s, t;
  for (int i = 1; i <= (int)(R); ++i)
    for (int j = 1; j <= (int)(C); ++j) {
      bool ok = true;
      for (int k = 0; k < (int)(M); ++k)
        if (ver[i][j][k] != b[k]) {
          ok = false;
          break;
        }
      if (ok) {
        s = i, t = j;
        break;
      }
    }
  if (R & 1 && C & 1 && (s + t) & 1) {
    printf("No\n");
    return 0;
  }
  if (R & 1 && C & 1)
    solve_path(s, t);
  else
    solve_cycle(s, t);
  return 0;
}
