PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#QHD0000015. Trò chơi lấy đá (Stones)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Trò chơi lấy đá (Stones)

Stones

Source: AtCoder

Version: Phuoc Hung OJ Extended

Problem Statement

Two players play a stone-removal game. There are initially KK stones and NN distinct positive integers a1,a2,…,aNa_1,a_2,\ldots,a_N describing the allowed numbers of stones to remove in a turn.

The first player moves first. On each turn, a player must remove exactly aia_i stones for some allowed value, provided enough stones remain. A player with no legal move loses.

Assuming that both players play optimally, determine whether the first or second player wins.

Input

The first line contains NN and KK, the number of allowed move sizes and the initial stone count.

The second line contains NN integers a1,a2,…,aNa_1,a_2,\ldots,a_N in increasing order.

Output

Print First if the first player wins under optimal play; otherwise print Second.

Subtasks

  • Subtask 1 (20 points): 1≤N≤31\le N\le 3; 1≤K≤1051\le K\le 10^5; 1≤a1<⋯<aN≤K1\le a_1<\cdots<a_N\le K; The aia_i are distinct positive integers in increasing order.
  • Subtask 2 (30 points): 1≤N≤191\le N\le 19; 1≤K≤1051\le K\le 10^5; 1≤a1<⋯<aN≤K1\le a_1<\cdots<a_N\le K; The aia_i are distinct positive integers in increasing order.
  • Subtask 3 (50 points): 1≤N≤1001\le N\le 100; 1≤K≤1051\le K\le 10^5; 1≤a1<⋯<aN≤K1\le a_1<\cdots<a_N\le K; The aia_i are distinct positive integers in increasing order.

Examples

Input

2 4
2 3

Output

First

Explanation

There are 44 stones, and each move removes 22 or 33. The first player removes 33, leaving 11. The second player has no legal move and loses, so the answer is First.