# caddi2018D - Harlequin

def main():

    N, *A = list(map(int, open(0).read().split()))

    flg = all(i % 2 == 0 for i in A)

    print(("second" if flg else "first"))





if __name__ == "__main__":

    main()
# caddi2018D - Harlequin

def main():

    N, *A = list(map(int, open(0).read().split()))

    flg = any(i & 1 for i in A)

    print(("first" if flg else "second"))





if __name__ == "__main__":

    main()
# caddi2018D - Harlequin
def main():
    N, *A = list(map(int, open(0).read().split()))
    flg = all(i % 2 == 0 for i in A)
    print(("second" if flg else "first"))


if __name__ == "__main__":
    main()

# caddi2018D - Harlequin
def main():
    N, *A = list(map(int, open(0).read().split()))
    flg = any(i & 1 for i in A)
    print(("first" if flg else "second"))


if __name__ == "__main__":
    main()

-    flg = all(i % 2 == 0 for i in A) -    print(("second" if flg else "first")) +    flg = any(i & 1 for i in A) +    print(("first" if flg else "second"))