Codeforces Round 260 (Div. 1)
B
A Lot of Games
Codeforces
1900
原题
← AC →
翻译中…

Andrew, Fedor and Alex are inventive guys. Now they invent the game with strings for two players.

翻译中…

Given a group of $*n*$ non-empty strings. During the game two players build the word together, initially the word is empty. The players move in turns. On his step player must add a single letter in the end of the word, the resulting word must be prefix of at least one string from the group. A player loses if he cannot move.

翻译中…

Andrew and Alex decided to play this game $*k*$ times. The player who is the loser of the $*i*$-th game makes the first move in the $(*i* + 1)$-th game. Guys decided that the winner of all games is the player who wins the last ($*k*$-th) game. Andrew and Alex already started the game. Fedor wants to know who wins the game if both players will play optimally. Help him.

翻译中…

Input

翻译中…

The first line contains two integers, $*n*$ and $*k*$ ($1 ≤ *n* ≤ 10^{5}$; $1 ≤ *k* ≤ 10^{9}$).

翻译中…

Each of the next $*n*$ lines contains a single non-empty string from the given group. The total length of all strings from the group doesn't exceed $10^{5}$. Each string of the group consists only of lowercase English letters.

翻译中…

Output

翻译中…

If the player who moves first wins, print "First", otherwise print "Second" (without the quotes).

翻译中…

样例

Input #1
2 3
a
b
Output #1
First
InputCopy OutputCopy
Input #2
3 1
a
b
c
Output #2
First
InputCopy OutputCopy
Input #3
1 2
ab
Output #3
Second
InputCopy OutputCopy
题目信息
题号
455B
时间限制
1 s
内存限制
256 MB
标签
DFS 及类似
动态规划
博弈论
模拟
字符串
树

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。