//Codeforces Round #169 (Div. 2) B Little Girl and Game
import java.io.*;
import java.math.*;
import java.text.*;
import java.util.*;
//Codeforces
public class MainCodeforces1 {
private static MyScanner in;
private static PrintStream out;
public static void main(String[] args) throws IOException {
// helpers for input/output
boolean LOCAL_TEST = false;// change to false before submitting
out = System.out;
if (LOCAL_TEST) {
in = new MyScanner("E:\\zin2.txt");
}
else {
boolean usingFileForIO = false;
if (usingFileForIO) {
// using input.txt and output.txt as I/O
in = new MyScanner("input.txt");
out = new PrintStream("output.txt");
}
else {
in = new MyScanner();
out = System.out;
}
}
solve();
}
private static void solve() throws IOException
{
int[] acnt = new int[26];
char[] cs = in.nextString().toCharArray();
int len = cs.length;
Arrays.fill(acnt, 0);
for (int i = 0; i < cs.length; i++) {
if (cs[i] != '-')
acnt[cs[i] - 'a'] += 1;
}
int odd = 0;
for (int i = 0; i < acnt.length; i++) {
if (acnt[i] % 2 == 1)
odd++;
}
boolean player1win = false;
if (len % 2 == 0) {
if (odd == 0)
player1win = true;
}
else {
if (odd % 2 == 1)
player1win = true;
}
if (player1win)
out.println("First");
else
out.println("Second");
}
// =====================================
static class MyScanner {
Scanner inp = null;
public MyScanner() throws IOException
{
inp = new Scanner(System.in);
}
public MyScanner(String inputFile) throws IOException {
inp = new Scanner(new FileInputStream(inputFile));
}
public int nextInt() throws IOException {
return inp.nextInt();
}
public long nextLong() throws IOException {
return inp.nextLong();
}
public double nextDouble() throws IOException {
return inp.nextDouble();
}
public String nextString() throws IOException {
return inp.next();
}
}
}
No comments:
Post a Comment