285 传统题

[ABC297G] 限区间取石子 (Constrained Nim 2)

时间限制
2000ms
内存限制
256MiB
登顶 / 尝试
0/ 0
难度
4

[ABC297G] 限区间取石子 (Constrained Nim 2)

Problem Statement

There are NN piles of stones. Initially, the ii-th pile contains AiA_i stones. With these piles, Taro the First and Jiro the Second play a game against each other.

Taro the First and Jiro the Second make the following move alternately, with Taro the First going first:

  • Choose a pile of stones, and remove between LL and RR stones (inclusive) from it.

A player who is unable to make a move loses, and the other player wins. Who wins if they optimally play to win?

Input

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

$N$ $L$ $R$ 
$A_1$ $A_2$ $\ldots$ $A_N$

Output

Print First if Taro the First wins; print Second if Jiro the Second wins.

Example

3 1 2
2 3 3
First

Note

  • Constraints:

  • 1≤N≤2×1051\leq N \leq 2\times 10^5

  • 1≤L≤R≤1091\leq L \leq R \leq 10^9

  • 1≤Ai≤1091\leq A_i \leq 10^9

  • All values in the input are integers.

  • Source: ABC297G