Two people play the following string game. Initially the players have got some string s. The players move in turns, the player who cannot make a move loses. 

Before the game began, the string is written on a piece of paper, one letter per cell.

<image> An example of the initial situation at s = "abacaba"

A player's move is the sequence of actions:

  1. The player chooses one of the available pieces of paper with some string written on it. Let's denote it is t. Note that initially, only one piece of paper is available. 
  2. The player chooses in the string t = t1t2... t|t| character in position i (1 ≤ i ≤ |t|) such that for some positive integer l (0 < i - l; i + l ≤ |t|) the following equations hold: ti - 1 = ti + 1, ti - 2 = ti + 2, ..., ti - l = ti + l. 
  3. Player cuts the cell with the chosen character. As a result of the operation, he gets three new pieces of paper, the first one will contain string t1t2... ti - 1, the second one will contain a string consisting of a single character ti, the third one contains string ti + 1ti + 2... t|t|. 

<image> An example of making action (i = 4) with string s = «abacaba»

Your task is to determine the winner provided that both players play optimally well. If the first player wins, find the position of character that is optimal to cut in his first move. If there are multiple positions, print the minimal possible one.

Input

The first line contains string s (1 ≤ |s| ≤ 5000). It is guaranteed that string s only contains lowercase English letters.

Output

If the second player wins, print in the single line "Second" (without the quotes). Otherwise, print in the first line "First" (without the quotes), and in the second line print the minimal possible winning move — integer i (1 ≤ i ≤ |s|).

Examples

Input

abacaba


Output

First
2


Input

abcde


Output

Second

Note

In the first sample the first player has multiple winning moves. But the minimum one is to cut the character in position 2. 

In the second sample the first player has no available moves.
#include <bits/stdc++.h>
using namespace std;
int sg[5005] = {0};
void init() {
  sg[0] = 0;
  sg[1] = 1;
  sg[2] = 1;
  sg[3] = 2;
  for (int i = 4; i <= 5000; i++) {
    int vis[5055] = {0};
    vis[sg[i - 2]] = 1;
    vis[sg[i - 3]] = 1;
    for (int j = 1; j + 3 + 1 <= i; j++) vis[sg[j] ^ sg[i - j - 3]] = 1;
    for (int j = 0; j <= 5000; j++)
      if (vis[j] == 0) {
        sg[i] = j;
        break;
      }
  }
}
int main() {
  init();
  char s[5055] = {0};
  scanf("%s", s);
  int len = strlen(s);
  int can[5055] = {0};
  for (int i = 1; i < len - 1; i++)
    if (s[i - 1] == s[i + 1]) can[i] = 1;
  int res = 0;
  int count = 0;
  for (int i = 1; i < len; i++) {
    if (can[i] == 0 && count) {
      res ^= sg[count];
      int now = i - 1;
      int cc = count;
      while (count) {
        can[now] = cc;
        now--;
        count--;
      }
    } else if (can[i])
      count++;
  }
  puts(res ? "First" : "Second");
  if (res) {
    int pos;
    for (int i = 1; i < len - 1; i++) {
      if (can[i] == 0) pos = 0;
      if (can[i]) {
        pos++;
        if (pos == 1 || pos == can[i]) {
          if (can[i] == 1) {
            if (res == 1) {
              printf("%d\n", i + 1);
              goto loop;
            }
          } else if ((res ^ sg[can[i]] ^ sg[can[i] - 2]) == 0) {
            printf("%d\n", i + 1);
            goto loop;
          }
        } else if (pos == 2 || pos == can[i] - 1) {
          if (can[i] == 2) {
            if (res == 2) {
              printf("%d\n", i + 1);
              goto loop;
            }
          } else if ((res ^ sg[can[i]] ^ sg[can[i] - 3]) == 0) {
            printf("%d\n", i + 1);
            goto loop;
          }
        } else {
          if ((res ^ sg[can[i]] ^ sg[can[i] - pos - 1] ^ sg[pos - 2]) == 0) {
            printf("%d\n", i + 1);
            goto loop;
          }
        }
      }
    }
  loop:;
  }
}
