#include <bits/stdc++.h>
using namespace std;
int n, a;
bool ok;
int main()
{
    cin >> n;
    while (n--)
    {
        cin >> a;
        ok |= (a & 1);
    }
    cout << (ok ? "first" : "second");
}
