# 비밀 메뉴 조작법 수, 사용자의 버튼 조작 수, 사용자의 버튼 조작 1 이상 K 이하
M, N, K = map(int, input().split())
# 비밀 메뉴 조작법
secret = "".join(map(str, input().split()))
# 사용자의 버튼 조작
manipulate = "".join(map(str, input().split()))
ticket = 'normal'
# 사용자의 버튼 조작에 비밀 메뉴 조작법이 있다면 'secret'
if secret in manipulate:
ticket = 'secret'
print(ticket)