#![allow(unused_macros)]
#![allow(dead_code)]
#![allow(unused_imports)]

use text_io::*;

fn main() {
    const U_INF: usize = 1 << 60;
    const I_INF: isize = 1 << 60;

    let n: usize = read!();
    let k: usize = read!();

    let mut a = vec![];
    for _ in 0..n {
        let ai: usize = read!();
        a.push(ai);
    }

    let mut dp = vec![false; k + 200];
    for i in 0..=n {
        let now = dp[i];
        for &ai in &a {
            dp[i + ai] = dp[i + ai] || !now;
        }
    }

    let ans = if dp[k] { "first" } else { "second" };
    println!("{}", ans);
}
