c = 0

for i in [0]*int(eval(input())):

  c = max(c,int(eval(input()))%2)

print(("sfeicrosntd"[c::2]))
c = 0

for i in [0]*int(eval(input())):

  c += int(eval(input()))%2

print(("sfeicrosntd"[min(c,1)::2]))
c = 0
for i in [0] * int(eval(input())):
    c = max(c, int(eval(input())) % 2)
print(("sfeicrosntd"[c::2]))

c = 0
for i in [0] * int(eval(input())):
    c += int(eval(input())) % 2
print(("sfeicrosntd"[min(c, 1) :: 2]))

-    c = max(c, int(eval(input())) % 2) -print(("sfeicrosntd"[c::2])) +    c += int(eval(input())) % 2 +print(("sfeicrosntd"[min(c, 1) :: 2]))