a, b=[int(yy) for yy in input().split()]

if b>=a:

	print('unsafe')

else:

	print("safe")

S, W = [int(x) for x in input().split()]

if W >= S:

    print('unsafe')

else:

    print('safe')
a, b = [int(yy) for yy in input().split()]
if b >= a:
    print("unsafe")
else:
    print("safe")

S, W = [int(x) for x in input().split()]
if W >= S:
    print("unsafe")
else:
    print("safe")

-a, b = [int(yy) for yy in input().split()] -if b >= a: +S, W = [int(x) for x in input().split()] +if W >= S: