There are S sheep and W wolves.
If the number of wolves is greater than or equal to that of sheep, the wolves will attack the sheep.
If the wolves will attack the sheep, print unsafe; otherwise, print safe.

-----Constraints-----
 - 1 \leq S \leq 100
 - 1 \leq W \leq 100

-----Input-----
Input is given from Standard Input in the following format:
S W

-----Output-----
If the wolves will attack the sheep, print unsafe; otherwise, print safe.

-----Sample Input-----
4 5

-----Sample Output-----
unsafe

There are four sheep and five wolves. The number of wolves is not less than that of sheep, so they will attack them.

Difficulty: introductory

Starter code:

Solutions:
S,W=list(map(int,input().split()))
if W<S:
    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')

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

resolve()

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

s, w = list(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 = list(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 w >= s :
    print('unsafe')

else :
    print('safe')

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

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")

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

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

s, w = list(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")

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

__starting_point()

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

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


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

if w>=a:
  print("unsafe")
else:
  print("safe")

s,w=map(int,input().split())
print(['safe','unsafe'][s<=w])

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

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


s,w = map(int,input().split())
print(['safe','unsafe'][w>=s])

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

def main() -> None:
    s, w = list(map(int, input().split()))

    print(('unsafe' if s <= w else 'safe'))
    return


def __starting_point():
    main()

__starting_point()

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')

import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect
#from operator import itemgetter
#from heapq import heappush, heappop
#import numpy as np
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson
#from scipy.sparse import csr_matrix
#from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
import sys

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

stdin = sys.stdin

ni = lambda: int(ns())
nf = lambda: float(ns())
na = lambda: list(map(int, stdin.readline().split()))
nb = lambda: list(map(float, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

S, W = na()
print('unsafe') if W >= S 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("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 = list(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 w >= s:
  print("unsafe")
else:
  print("safe")

s,w = input().split()

if int(s) <= int(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())
print('unsafe') if s <= w 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 = 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")

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


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

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

s, w = list(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 w >= s:
  print('unsafe')
else:
  print('safe')

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

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

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

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


number = input().split(" ")
S = int(number[0])
W = int(number[1])

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

nums = [int(e) for e in input().split()]

Sheep = nums[0]
Wolves = nums[1]

if Sheep > Wolves:
  print("safe")
else:
  print("unsafe")  

import sys

S, W = map(int, input().split())

if S > W:
    print('safe')
else:
    print('unsafe')

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')

# coding: utf-8
# Your code here!

[s,w] = input().split()
s = int(s)
w = int(w)

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('unsafe')
else:
    print('safe')

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

import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp

INF = inf
MOD = 1000000007

s, w = [int(i) for i in input().split()]

tmp = 0
res = "safe"

if w >= s:
    res = "unsafe"

print(res)


s,w=list(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())
print('unsafe' if s<=w else 'safe')

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

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

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()))

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


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

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

s,w=list(map(int,input().split()))
print(('unsafe' if s<=w else '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")

a = input().split()
a = [ int(i) for i in a ]

if a[0] <= a[1]:
  print("unsafe")
else:
  print("safe")

sheep, wolves = map(int, input().split())

if sheep > wolves:
    print("safe")
elif sheep <= wolves:
    print("unsafe")

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

s, w = list(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())
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())
print('unsafe' if S <= W else 'safe')

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')

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

#ABC164
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')
elif 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('safe')
else:
  print('unsafe')

S, W = list(map(int, input().split()))

print(("unsafe" if S <= W else "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")