s = eval(input())

t = ''

for c in s:

    if c in (s[0],s[-1]):

        t += c

r = len(t)

for c,d in zip(t[:-1],t[1:]):

    if c==d:

        r += 1

if len(s)%2==r%2:

    print('Second')

else:

    print('First')

s = eval(input())

t = [i for i in s if i in (s[0],s[-1])]

r = len(t)

for c,d in zip(t[:-1],t[1:]):

    r += c==d

print(('Second' if len(s)%2==r%2 else 'First'))

s = eval(input())
t = ""
for c in s:
    if c in (s[0], s[-1]):
        t += c
r = len(t)
for c, d in zip(t[:-1], t[1:]):
    if c == d:
        r += 1
if len(s) % 2 == r % 2:
    print("Second")
else:
    print("First")

s = eval(input())
t = [i for i in s if i in (s[0], s[-1])]
r = len(t)
for c, d in zip(t[:-1], t[1:]):
    r += c == d
print(("Second" if len(s) % 2 == r % 2 else "First"))

-t = "" -for c in s: -    if c in (s[0], s[-1]): -        t += c +t = [i for i in s if i in (s[0], s[-1])] -    if c == d: -        r += 1 -if len(s) % 2 == r % 2: -    print("Second") -else: -    print("First") +    r += c == d +print(("Second" if len(s) % 2 == r % 2 else "First"))