#include <cstdio>

int main()
{
  int n;
  scanf("%d", &n);
  int e = 1;
  for (int i = 0; i < n; ++i)
  {
    int a;
    scanf("%d", &a);
    e &= a ^ 1;
  }
  puts(e != 0 ? "second" : "first");
  return 0;
}