peterverebics/CodeNet_Python_118 huggingface dataset:
[S, W] = list(map(int, input().split()))
if S > W:
  print("safe")
else:
  print("unsafe")
s,w = map(int,input().split())

ans = 'unsafe' if s<=w else 'safe'
print(ans)
def main():
    s, w = map(int, input().split())
    if w >= s:
        print('unsafe')
    else:
        print('safe')


if __name__ == '__main__':
    main()
a = input().split(" ")
s = int(a[0])
w = int(a[1])

if w >= s:
  print("unsafe")
else:
  print("safe")
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def main():
    S, W = map(int, input().split())
    print("unsafe"if S <= W else "safe")


if __name__ == "__main__":
    main()
s,w = map(int,input().split())
if s <=w:
    print("unsafe")
else:
    print("safe")
a,b = map(int, input().split())
print("unsafe" if a <= b else "safe")
S,W = input().split()

if int(W) >= int(S):
    print("unsafe")
else:
    print("safe")
s,w = map(int, input().split())

if w >= s: print("unsafe")
else: print("safe")
s,w=map(int,input().split())

if(s>w):
    print("safe")
else:
    print("unsafe")
    
#a,b,c,d=map(int,input().split())
S, W = map(int, input().split())

if S>W:
    print('safe')
else:
    print('unsafe')
S, W = map( int, input().split() )
if W >= S :
    print( 'unsafe' )
else :
    print( 'safe' )
S,W=map(int,input().split())

if S<=W:
    print("unsafe")
else:
    print("safe")
s,w = map(int,input().split())
if s>w:
  print('safe')
else:
  print('unsafe')
S,W = map(int,input().split())
if S>W:
  print("safe")
else:
  print("unsafe")
# -*- coding: utf-8 -*-
"""
@author: H_Hoshigi
"""
def main():
    S, W = map(int, input().split())
    answer = ""
    if S <= W:
        answer = "unsafe"
    else:
        answer = "safe"
    print(answer)

if __name__ == "__main__":
    main()
s,w=map(int,input().split())
if w >= s:
    print('unsafe')
else:
    print('safe')
s,w=map(int,input().split())
print("safe" if s>w else "unsafe")
S, W = map(int, input().split())
if W >= S:
    ans = 'unsafe'
else:
    ans = 'safe'
print(ans)
n_sheep ,n_wolves = input().split()
n_sheep , n_wolves = int(n_sheep),int(n_wolves)

if n_sheep > n_wolves:
  print('safe')
else:
  print('unsafe')
s, w = map(int, input().strip().split())
if w>=s:
    print("unsafe")
else:
    print("safe")
s, w = [int(i) for i in input().split()]
if s <= w:
  print("unsafe")
else:
  print("safe")
S,W=list(map(int,input().split()))

if S<=W: print("unsafe")
else: print("safe")
S,W=map(int,input().split())
if W>=S:
    print("unsafe")
else:
    print("safe")
import sys
s,w=map(int, input().split())
if s > w:
        print("safe")
else:
        print("unsafe")
s,w=map(int,input().split())
if s>w:
  print('safe')
else:
  print('unsafe')
s, w = map(int, input().split())
if s <= w:
  print('unsafe')
else:
  print('safe')
s, w = map(int, input().split())

if s <= w:
    print('unsafe')
else:
    print('safe')
import sys
#sys.exit()
#sorted( ,reverse=True)
#N = int(input())
S,W = map(int, input().split())
#A = list(map(int, input().split()))
if W >= S:
    print('unsafe')
else:
    print('safe')
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

s, w = map(int, read().split())
if w >= s:
    print('unsafe')
else:
    print('safe')
class Main:

    s1, s2= map(int,input().split());

    if s1 <= s2:
        print("unsafe");
    else:
        print("safe");
import sys
input = sys.stdin.readline

import numpy as np

sw = np.array([int(x) for x in input().split()])
ans = "unsafe" if sw[1] >= sw[0] else "safe"
print(ans)
n=input().split()
n[0]=int(n[0])
n[1]=int(n[1])
if n[0]<=n[1]:
    print('unsafe')
else:
    print('safe')
i = list(map(int, input().split()))
if i[0] > i[1]:
    print("safe")
else:
    print("unsafe")
# A - Sheep and Wolves

s, w = map(int, input().split())
print("unsafe" if w >= s else "safe")
s,w = map(int,input().split())

if w>=s:
  print('unsafe')
else:
  print('safe')
S, W = map(int, input().split())

if S > W:
  print('safe')
else:
  print('unsafe')
S,W = map(int,input().split())
if S <= W:
    print("unsafe")
else:
    print("safe")
S, W = map(int, input().split())
if W >= S:
    print('unsafe')
else:
    print('safe')
s, w = list(map(int, input().split()))
if s > w:
    print("safe")
else:
    print("unsafe")
n, m = map(int, input().split())
if m >= n:
    print("unsafe")
else:
    print("safe")
s, w = map(int, input().split())
if s > w:
    print('safe')
else:
    print('unsafe')
line = input().split()
s = int(line[0])
w = int(line[1])

if w >= s:
  print("unsafe")
else :
  print("safe")
S,W=map(int,input().split())
print("safe" if S>W else "unsafe")
s,w = map(int,input().split())

if s > w:
    print("safe")
else:
    print("unsafe")
s,w=map(int,input().split())
if s<=w:
    print('unsafe')
else:
    print('safe')
s,w = map(int, input().split())

if w >= s:
    print('unsafe')
else:
    print('safe')
s,w = map(int, input().split())
if w >= s:
  print("unsafe")
else:
  print("safe")
s, w = map(int, input().split())

if s <= w:
  print('unsafe')
else:
  print('safe')
#https://atcoder.jp/contests/abc164/tasks/abc164_a
S,W= map(int,input().split())
if S > W:
    print("safe")
else:
    print("unsafe")
S,W=map(int, input().split())
print('unsafe' if W>=S else 'safe')
S,W=list(map(int, input().split()))

if S>W:
  print("safe")

else:
  print("unsafe")
s, w = map(int,input().split())

if w >= s:
    print('unsafe')
else:
    print('safe')
S,W=map(int,input().split())

if W>=S:
  print('unsafe')
else:
  print('safe')
S, W = list(map(int, input().split()))

if S <= W:
    print('unsafe')
else:
    print('safe')
s, w = map(int, input().split())

if s<=w:
    print('unsafe')
else:
    print('safe')
def main():
    s,w = map(int,input().split())
    if s <= w:
        print('unsafe')
    else:
        print('safe')

if __name__=='__main__':
    main()
# A
s, w = map(int, input().split())

if w >= s:
    print('unsafe')
else:
    print('safe')
S ,W= list(map(int, input().split()))
if W >= S :
    print('unsafe')
else:
    print('safe')
S, W = list(map(int, input().split()))
if S <= W :
    print("unsafe")
if S > W :
    print("safe")
s ,w = map(int,input().split())
print('unsafe' if w >= s else 'safe')
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
#from math import floor, ceil
#from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
#inf = 10**17
#mod = 10**9 + 7

s,w=MI()
if w>=s:
    print("unsafe")
else:
    print("safe")
s,w = map(int, input().split())
if s<=w:
    print('unsafe')
else:
    print('safe')
s,w=map(int,input().split())
print("un"*(w>=s)+"safe")
s,w = map(int,input().split())

if w >= s:
  print('unsafe')
else:
  print('safe')
a, b = map(int, input().split())
if a<=b:
  print("unsafe")
else:
  print("safe")
S,W = map(int, input().split())

if S<=W:
	print('unsafe')
else:
	print('safe')
from heapq import *
import sys
from collections import *
from itertools import *
from decimal import *
import copy
from bisect import *
import time
import math
def gcd(a,b):
    if(a%b==0):return(b)
    return (gcd(b,a%b))
S,W=map(int,input().split())
if not S<=W:
    print("safe")
else:
    print("unsafe")
S, W = map(int, input().split())
if W >= S:
    print("unsafe")
else:
    print("safe")
s,w = map(int,input().split())
print("unsafe" if s <= w else "safe")
S, W = map(int, input().split())
print(f'{"unsafe" if W>=S else "safe"}')
# AtCoder
S, W = map(int, input().split())
if S <= W:
    print('unsafe')
else:
    print('safe')
s, w = map(int, input().split())
if w >= s:
  print('unsafe')
else:
  print('safe')
S, W = map(int, input().split())
if S <= W:
  print("unsafe")
else:
  print("safe")
#ABC164a

s, w = map(int, input().split())

if w >= s:
    print('unsafe')
else:
    print('safe')
x = input().split()
s = int(x[0])
w = int(x[1])
if s > w:
  print('safe')
else:
  print('unsafe')
s, w = map(int, input().split())
if s <= w:
    print('unsafe')
else:
    print('safe')
#!/usr/bin/env python3

import sys

DEBUG = False

def read(t):
    return t(sys.stdin.readline().rstrip())


def read_list(t, sep = " "):
    return [t(s) for s in sys.stdin.readline().rstrip().split(sep)]


def dprint(*args, **kwargs):
    if DEBUG:
        print(*args, **kwargs)
    return


def main():
    s, w = read_list(int)
    if s <= w:
        print("unsafe")
    else:
        print("safe")


if __name__ == "__main__":
    main()
sw = input().split()
s = int(sw[0])
w = int(sw[1])

if w >= s :
    print("unsafe")
else:
    print("safe")
s,w=(int(x) for x in input().split());

if w < s:
  print("safe");
else:
  print("unsafe");
s,w = map(int,input().split())
if w>=s:
  print('unsafe')
else:
  print('safe')
#https://atcoder.jp/contests/abc164/tasks/abc164_a
# -*- coding: utf-8 -*-
S,W = map(int,input().split())
if W >= S :
  print("unsafe")
else:
  print("safe")
import sys
from collections import Counter

lines = 1
inp = list()

for _ in range(lines):
    inp.append(sys.stdin.readline().strip())


sw = inp[0].split()
s = int(sw[0])
w = int(sw[1])

res = "safe" if s > w else "unsafe"
print(res)
S,W = map(int,input().split(' '))

if W>=S:
    print('unsafe',end='\n')
else:
    print('safe',end='\n')
S, W = map(int, input().split())
if S>W:
  print("safe")
else:
  print("unsafe")
a,b=map(int,input().split())
if a>b:
    print("safe")
else:
    print("unsafe")
s, w = map(int, input().split())

if (s <= w):
    print("unsafe")
else:
    print("safe")
S, W = map(int, input().split())
if W>=S:
    print("unsafe")
else:
    print("safe")
s,w = map(int,input().split())
if w >= s :
    print('unsafe')
else :
    print('safe')
S, W = map(int, input().split())

if W >= S:
    print("unsafe")
else:
    print("safe")
import sys
stdin = sys.stdin
sys.setrecursionlimit(10**6)
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

s,w = na()

if w >= s:
    print('unsafe')
else:
    print('safe')
S, W = map(int, input().split())
if S < W:
    print('unsafe')
elif S > W:
    print('safe')
elif S == W:
    print('unsafe')
import sys
S, W = map(int, sys.stdin.readline().split())
if S <= W:
    print("unsafe")
else:
    print("safe")
import sys
input = sys.stdin.readline


def main():
    S, W = map(int, input().split())
    print("safe") if S > W else print("unsafe")


if __name__ == "__main__":
    main()
a=[int(i) for i in input().split()]
if a[0]<=a[1]:
    print("unsafe")
else:
    print("safe")
a, b = map(int, input().split())
if a <= b:
    print("unsafe")
else:
    print("safe")
a, b = map(int, input().split())
if(a > b):
  print("safe")
else:
  print("unsafe")
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    s, w = map(int, rl().split())
    if s > w:
        print('safe')
    else:
      print('unsafe')
    

if __name__ == '__main__':
    solve()
S,W=input().split()
S=int(S)
W=int(W)
if W >= S:
    print("unsafe")
else:
    print("safe")
S,W = map(int,input().split())
if W >= S:
    print("unsafe")
else:
    print("safe")
#A - Sheep and Wolves
S,W= map(int, input().split())
if S <= W:
    print("unsafe")
else:
    print("safe")
a, b = map(int, input().split())
if b >= a: print("unsafe")
else: print("safe")
def main():
    s,w = map(int,input().split())
    answer = "unsafe" if w >= s else "safe"
    print(answer)
if __name__ == '__main__':
    main()
s, w = map(int, input().split())
if (s <= w):
    print('unsafe')
else:
    print('safe')
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines

def main():
    s,w = map(int, readline().split())

    print("unsafe" if w >= s else "safe")


if __name__ == "__main__":
    main()
s, w = map(int, input().split())
print("un" * (s <= w) + "safe")
s,w=map(int,input().split())
if w>=s: print('unsafe')
else: print('safe')
s,w =map(int,input().split())
if(s<=w):
    print('unsafe')
if(s>w):
    print('safe')
S,W=map(int,input().split())
if W>=S:
  print('unsafe')
else:
  print('safe')
s, w = list(map(int, input().split()))
if s > w:
    print('safe')
else:
    print('unsafe')
S,W = map(int,input().split())

if S <= W:
    print("unsafe")
else:
    print("safe")
S, W = map(int,input().split())
if S> W:
  print("safe")
else:
  print("unsafe")
S,W = map(int, input().split())
if S <= W:
  print('unsafe')
else:
  print('safe')
s,w = map(int,input().split())
if s > w:
  print('safe')
else:
  print('unsafe')
s, w = map(int, input().split())
if w - s >= 0:
    print('unsafe')
else:
    print('safe')
S,W = map(int,input().split())
if S<=W:
    print('unsafe')
elif S>W:
    print('safe')
s,w=map(int,input().split())
if s>w:
    print("safe")
elif s<=w:
    print("unsafe")
N,M = map(int,input().split())

if M >= N :
    print('unsafe')
else :
    print('safe')
s,w = map(int,input().split())
if w>=s:
    print('unsafe')
else:
    print('safe')
s,w = map(int,input().split())
print('safe' if s>w else 'unsafe')
s,w = map(int,input().split())
print("safe" if s>w else "unsafe")
S, W = list(map(int, input().split()))
if W >= S :
    print("unsafe")
else:
    print("safe")
s, w = list(map(int, input().split()))

ans = "unsafe"
if s > w:
    ans = "safe"
print(ans)
s,w=map(int,input().split())

if w >= s:
    print("unsafe")
else:
    print("safe")
# coding:utf-8

import sys
import math
import time
#import numpy as np
import collections
from collections import deque
from collections import Counter
import queue
import copy
import bisect
import heapq
import itertools

#sys.setrecursionlimit(10**7)
#N, Q = map(int, input().split())
#G = [list(input()) for i in range(H)]
#INF = V * 10001
#A = [int(i) for i in input().split()]
#AB = [list(map(int, input().split())) for _ in range(K)]

s, w = map(int,input().split())
ans = 0
if(s-w<=0):
    print("unsafe")
else:
    print("safe")
S, W = list(map(int, input().split()))

if W >= S:
  print("unsafe")
else:
  print("safe")
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
from bisect import bisect_left,bisect_right 
import sys,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))

s,w = inpl()
print('safe' if s > w else 'unsafe')
S, W = map(int,input().split())
if S <= W:
  print("unsafe")
else:print("safe")
import sys 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N,W = map(int,readline().split())
if W >= N:
    print('unsafe')
else:
    print('safe')
s,w = map(int,input().split())
if s > w:
  print("safe")
else:
  print("unsafe")
n,m = map(int, input().split())

if n <= m:
  print('unsafe')
else:
  print('safe')
S,W=map(int,input().split())
if S<=W:
    print ('unsafe')
else:
    print ('safe')
S, W = [int(x) for x in input().split()]

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

if W >= S:
    print("unsafe")
else:
    print("safe")
S,W = map(int, input().split())
print("safe" if S>W else "unsafe")
S,W=map(int,input().split())
if W>=S:
  print("unsafe")
else:
  print("safe")
S, W = map(int, input().split())
print("{}".format("unsafe" if W >= S else "safe"))
a,b = map(int,input().split())
if a>b:
  print("safe")
else:
  print("unsafe")
s,w = list(map(int, input().split(' ')))

if w >= s:
  print('unsafe')
else:
  print('safe')
l = input().split()
s = int(l[0])
w = int(l[1])

if s > w:
    print("safe")
else:
    print("unsafe")
import numpy as np


s, w = (int(x) for x in input().split())

if s > w:
    print("safe")
else:
    print("unsafe")
s,w = map(int, input().split())
if w >= s:
    print("unsafe")
else:
    print("safe")
S,W=map(int,input().split())

if S<=W:
  print("unsafe")
  
else:
  print("safe")
s,w=map(int,input().split())
if w>=s:
  print("unsafe")
else:
  print("safe")
S,W=map(int,input().split())

if S>W:
    print('safe')
else:
    print('unsafe')
s, w = map(int, input().split())
if s > w:
  print("safe")
else:
  print("unsafe")
s, w = map(int, input().split())

if w >= s:
    print("unsafe")
else:
    print("safe")
S, W = map(int, input().split())

if S <= W:
    print('unsafe')
else:
    print('safe')
K,S = list(map(int,input().split()))

if K > S:
  print("safe")
else:
  print("unsafe")
s, w = map(int, input().split())
print('safe') if s > w else print('unsafe')
s, w = [int(i) for i in input().split()]
print("unsafe" if s <= w else "safe")
S,W = list(map(int, input().split()))

print('unsafe' if W >= S else 'safe')
s,n=map(int, input().split())

if n>=s:
    print("unsafe")
else:
    print("safe")
a,b=map(int,input().split())
if a<=b:
  print("unsafe")
else:
  print("safe")
a,b = list(map(int,input().split()))
print('safe' if a>b else 'unsafe')
S,W = (int(x) for x in input().split())
if S <= W:
    print('unsafe')
else:
    print('safe')
S, W = map(int, input().split())

print('unsafe' if W >= S else 'safe')
S, W = map(int, input().split())

if( S <= W ):
        print("unsafe")
else:
        print("safe")
S,W = map(int,input().split())

if S>W:
  print ('safe')
else :
  print ('unsafe')
s, b = map(int,input().split())
if s > b:
  print("safe")
else:
  print("unsafe")
import os

import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353

S, W = list(map(int, sys.stdin.buffer.readline().split()))
if S <= W:
    print('unsafe')
else:
    print('safe')
s,w=map(int,input().split())
print("unsafe" if w>=s else "safe")
s,w = map(int,input().split())
print('unsafe' if s<=w else 'safe')
S, W = map(int, input().split())

if S > W:
    print('safe')
else:
    print('unsafe')
#!/usr/bin/env python3
import sys


def solve(S: int, W: int):
    print("unsafe" if S<=W else "safe")
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = int(next(tokens))  # type: int
    W = int(next(tokens))  # type: int
    solve(S, W)

if __name__ == '__main__':
    main()
def main():
    S, W = map(int, input().split())

    if W >= S:
        print("unsafe")
    else:
        print("safe")


if __name__ == '__main__':
    main()
s,w=map(int,input().split())
print('safe'if s>w else'unsafe')
S, W = map(int, input().split())


def check():
    if S<=W:
        return True
if check():
    print('unsafe')
else:
    print('safe')
def q1():
    S, W = (int(i) for i in input().split())
    if W >= S:
        print('unsafe')
    else:
        print('safe')


if __name__ == '__main__':
    q1()
#n=int(input())
s,w=map(int,input().split())
#l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]

if w>=s :
    print("unsafe")
else:
    print("safe")
S, W = map(int,input().split())
print('unsafe'if W >= S else 'safe')
tmp = input().split(" ")
S = int(tmp[0])
W = int(tmp[1])

if S <= W:
  print("unsafe")
else:
  print("safe")
s, w = map(int, input().split())
if (w >= s):
  print("unsafe")
else:
  print("safe")
s,w=map(int,input().split())
if s <= w:
  print("unsafe")
else:
  print("safe")
s,w = map(int,input().split())
if w>=s:
    print("unsafe")
else:
    print("safe")
a,b=map(int, input().split())
print('unsafe') if a<=b else print('safe')
S, W = list(map(int, input().split()))
if S <= W:
  print("unsafe")
else:
  print("safe")
s,w = input().split()
#print(s,w)
if int(s) > int(w):
  print('safe')
else:
  print('unsafe')
s, w = map(int, input().split())
if s <= w:
  print("unsafe")
else:
  print("safe")
S,W=map(int,input().split())
print('unsafe' if S <= W else 'safe')
n, m = map(int, input().split())
if n > m:
    print("safe")
else:
    print("unsafe")
s,w = map(int, input().split())
print("unsafe" if s <= w else "safe")
s, w = map(int, input().split())

print("unsafe" if w >= s else "safe")
s, w = input().split()
s = int(s)
w = int(w)
if s <= w:
    print('unsafe')
else:
    print('safe')
s,w=map(int,input().split())
if s > w:
  print("safe")
else:
  print("unsafe")
s, w = map(int, input().split())
print('unsafe' if w>=s else 'safe')
S,W = map(int,input().split())
if S>W:
   print("safe")
else:
   print("unsafe")
def main():
    s,w=map(int,input().split())
    yn='unsafe' if w>=s else 'safe'
    print(yn)

if __name__ == '__main__':
    main()
s, w = list(map(int, input().split()))
if w >= s:
    print("unsafe")
else:
    print("safe")
S,W=(int(x) for x in input().split())
if S<=W:
    print("unsafe")
else:
    print("safe")
a,b = [int(i) for i in input().split()]
if a>b:
	print("safe")
else :
	print("unsafe")
#ABC164a
s, w = map(int, input().split())

if s <= w:
    print('unsafe')
elif s > w:
    print('safe')
S = list(map(int,input().split()))

if S[0] <= S[1]:
    print('unsafe')
else:
    print('safe')
S,W = map(int,input().split())
print('unsafe') if S <= W else print('safe')
s, w = map(int, input().split())


if w>=s:
  print('unsafe')
else:
  print('safe')
S,W = map(int,input().split())


if W >=S:
    print("unsafe")
else:
    print("safe")
s, w = map(int, input().split())

if s > w:
    print("safe")
else:
    print("unsafe")
def compare():
    a,b=map(int,input().split())

    if a <= b:
        print("unsafe")
    else:
        print("safe")


compare()
s,w = map(int,input().split())
print('safe' if s > w else 'unsafe')
s, w = map(int, input().split())

txt = 'unsafe' if s <= w else 'safe'
print(txt)
import bisect
import collections
import sys

sys.setrecursionlimit(100000)
input = sys.stdin.readline
ACMOD = 1000000007
INF = 1 << 62


def lmi():
    return list(map(int, input().split()))


def llmi(n):
    return [lmi() for _ in range(n)]


S,W = lmi()
print("unsafe" if S <= W else 'safe')
from sys import stdin

S,W = [int(x) for x in stdin.readline().rstrip().split()]
if S > W:
    print('safe')
else:
    print('unsafe')
s,w=[int(x) for x in input().split()]
if w>=s:print('unsafe')
else:print('safe')
s, w = map(int, input().split())

if w >= s:
  print('unsafe')
else:
  print('safe')
s,w = map(int,input().split())
if s<=w:
  print('unsafe')
else:
  print('safe')
S, W = list(map(int, input().split()))
print(('unsafe', 'safe')[S > W])
S,W = map(int, input().split())
if S <= W:
    print('unsafe')
else:
    print('safe')
s,w = map(int,input().split())
if s <= w:
  print("unsafe")
else:
  print("safe")
S, W = map(int, input().split())

if S <= W:
  print('unsafe')
else:
  print('safe')
def Main(S, W):
    return 'unsafe' if S <= W else 'safe'

def main():
    S, W = map(int, input().split())
    print(Main(S, W))

if __name__ == '__main__':
    main()
s,w = map(int,input().split())

print("unsafe" if s <= w else "safe")
s, w = map(int, input().split(' '))
if s<=w:
  print('unsafe')
else:
  print('safe')
#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

s,w = map(int,input().split())
if s <= w:
  print("unsafe")
else:
  print("safe")
s, w = map(int, input().split())
# = list(map(int, input().split()))
print("unsafe" if w >= s else "safe")
S, W = map(int,input().split())
if W >= S:
    print('unsafe')
else:
    print('safe')
s,w = map(int,input().split())

if s<=w:
    print("unsafe")

else:
    print("safe")
S, W = map(int, input().split())

if S <= W :
  print('unsafe')
else :
  print('safe')
s, w = map(int, input().split())
print('safe' if s > w else 'unsafe')
import sys
import decimal
input=sys.stdin.readline

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