grade, score = map(int, input().split())
if grade==1:
if score>=60 and score<=100:
print("pass")
elif score<60 and score>=0:
print("fail")
else:
print("score error")
elif grade==2:
if score>=70 and score<=100:
print("pass")
elif score<70 and score>=0:
print("fail")
else:
print("score error")
else:
print("role error")