#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "First" << endl;
    for (int i = 0; i < 2 * n; i++) {
      cout << (i % n) + 1 << " ";
    }
    cout << endl;
  } else {
    cout << "Second" << endl;
    vector<vector<int>> pairs(n);
    for (int i = 0; i < 2 * n; i++) {
      int p;
      cin >> p;
      pairs[p - 1].push_back(i);
    }
    vector<int> next(2 * n);
    for (int i = 0; i < n; i++) {
      next[pairs[i][0]] = pairs[i][1];
      next[pairs[i][1]] = pairs[i][0];
    }
    vector<bool> vis(n);
    vector<int> res[2];
    long long sum = 0;
    for (int i = 0; i < n; i++) {
      int p = i;
      while (!vis[p % n]) {
        vis[p % n] = true;
        res[0].push_back(p + 1);
        res[1].push_back(next[p] + 1);
        sum += p + 1;
        p = next[p];
        if (p >= n)
          p -= n;
        else
          p += n;
      }
    }
    int r = (sum % (2 * n)) != 0;
    for (int i = 0; i < n; i++) cout << res[r][i] << " ";
    cout << endl;
  }
  return 0;
}
