#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:;
  }
}
