Problem:
Score : 500 points

Problem Statement

There is a string s of length 3 or greater.
No two neighboring characters in s are equal.

Takahashi and Aoki will play a game against each other.
The two players alternately performs the following operation, Takahashi going first:

Remove one of the characters in s, excluding both ends. However, a character cannot be removed if removal of the character would result in two neighboring equal characters in s.

The player who becomes unable to perform the operation, loses the game. Determine which player will win when the two play optimally.

Constraints

3 ≤ |s| ≤ 10^5

s consists of lowercase English letters.

No two neighboring characters in s are equal.

Input

The input is given from Standard Input in the following format:

s

Output

If Takahashi will win, print First. If Aoki will win, print Second.

Sample Input 1

aba

Sample Output 1

Second

Takahashi, who goes first, cannot perform the operation, since removal of the b, which is the only character not at either ends of s, would result in s becoming aa, with two as neighboring.

Sample Input 2

abc

Sample Output 2

First

When Takahashi removes b from s, it becomes ac.
Then, Aoki cannot perform the operation, since there is no character in s, excluding both ends.

Sample Input 3

abcab

Sample Output 3

First

Solution in C# (Mono 4.6.2.0) (judge verdict: Wrong Answer)

using System;
using System.Collections.Generic;
using System.Linq;
using static AtCoder.Io;
namespace AtCoder
{
    class Program
    {
        static void Main()
        {
            var s = ReadString();
            var minDis = s.Length;
            foreach (var c in "abcdefghijklmnopqrstuvwxyz")
            {
                minDis = Math.Min(minDis, MaxAdjacentSub(EnumerateIndexOf(s, c).ToArray()));
            }
            if(minDis == 0)
            {
                Console.WriteLine(s.Length % 2 != 0 ? "First" : "Second");
            }
            else
            {
                Console.WriteLine(minDis % 2 == 0 ? "First" : "Second");
            }
        }

        static int MaxAdjacentSub(int[] source)
        {
            var max = 0;
            for (int i = 0; i < source.Length - 1; i++)
            {
                if (source[i + 1] - source[i] > max)
                {
                    max = source[i + 1] - source[i];
                }
            }
            return max;
        }

        static IEnumerable<int> EnumerateIndexOf(string source, char value)
        {
            var index = source.IndexOf(value);
            while (index >= 0)
            {
                yield return index;
                index = source.IndexOf(value, index + 1);
            }
        }
    }

    public static class Io
    {
        public static string ReadString() => Console.ReadLine();
        public static string[] ReadStringArray() => ReadString().Split(' ');
        public static int ReadInt() => int.Parse(ReadString());
        public static long ReadLong() => long.Parse(ReadString());
        public static int[] ReadIntArray() => ReadStringArray().ParseInt().ToArray();
        public static long[] ReadLongArray() => ReadStringArray().ParseLong().ToArray();
        public static IEnumerable<int> ParseInt(this IEnumerable<string> source) => source.Select(int.Parse);
        public static IEnumerable<long> ParseLong(this IEnumerable<string> source) => source.Select(long.Parse);
    }
}