peterverebics/CodeNet_Python_118 huggingface dataset:
s,w=input().split()
s=int(s)
w=int(w)
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 = 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())
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 s > w:
  print("safe")
else:
  print("unsafe")
s, w = map(int,input().split())
if w >= s:
    print('unsafe')
else:
    print('safe')
a, b = map(int, input().split())
 
if a > b:
  print("safe")
else:
  print("unsafe")
S,W=map(int,input().split())
print("unsafe" if W>=S else "safe")
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    S, W = list(map(int,_in[0].split(' ')))  # type:list(int)
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    TF = 'unsafe' if W>=S else 'safe'
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(TF)
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 = (int(x) for x in input().split())
if s > w:
  print("safe")
if w >= s:
  print("unsafe")
S,W=map(int,input().split())
if S<=W:
  print("unsafe")
else:
  print("safe")
def main():
    K, N = map(int,input().split())
    if K<=N:
        print('unsafe')
    else:
        print('safe')


if __name__ == '__main__':
    main()
if __name__ == "__main__":
    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())
ans = lambda x,y:"unsafe" if x <= y else "safe"
print(ans(S,W))
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("safe")
else:
    print("unsafe")
s,w=map(int,input().split())

if w>=s:
    print("unsafe")
else:
    print("safe")
def issafe(S,W):
    if S > W:
        return "safe"
    return "unsafe"

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

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


if __name__ == "__main__":
    main()
S, W = [int(i) for i in 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(w>=s):
  print("unsafe")
else:
  print("safe")
# 164 A
S,W = list(map(int, input().split()))
print('safe') if S > W else print('unsafe')
a,b =  (int(x) for x in input().split())
print("safe" if a > b else "unsafe")
s,w = map(int,input().split())

if w >= s:
    print("unsafe")
else:
    print("safe")
import sys
from math import factorial
from collections import Counter
from fractions import Fraction
import heapq, bisect, fractions
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7


a, b = MAP()
if a<= b:
    print('unsafe')
else:
    print('safe')
s, w = map(int, input().split())
if s <= w: print("unsafe")
else: print("safe")
#!python3

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


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


if __name__ == "__main__":
    main()
def main():
    n, m = map(int, input().split())

    if m >= n:
        print('unsafe')
    else:
        print('safe')

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('unsafe' if (S <= W) else '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")
inputs = input().split(' ')

sheeps = int(inputs[0])
wolves = int(inputs[1])

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

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


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


if __name__ == '__main__':
    solve()
import sys
readline = sys.stdin.buffer.readline
s,w= list(map(int,readline().rstrip().split()))
if s <= w:
  print('unsafe')
else:
  print('safe')
S, W = map(int, input().split())
 
if S <= W:
  print('unsafe')
else:
  print('safe')
seep, wolf = map(int, input().rstrip().split())
 
if seep > wolf:
  print('safe')
else:
  print('unsafe')
s,w = map(int, input().split())
if s <= w:
    print('unsafe')
else:
    print('safe')
# -*- coding: utf-8 -*-

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

if W >= S:
    print('unsafe')
else:
    print('safe')
S, W = (int(x) for x in 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())
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')
sw = input().split()

s = int(sw[0])
w = int(sw[1])

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

if W >= S:
  print("unsafe")
else:
  print("safe")
a, b = list(map(int, input().split()))
if b >= a:
    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')
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
sys.setrecursionlimit(10**7)
from pprint import pprint as pp
from pprint import pformat as pf

import math
#from sortedcontainers import SortedList, SortedDict, SortedSet # no in atcoder
import bisect


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

    #print('\33[32m' + 'end' + '\033[0m') # debug
n,m=map(int,input().split())
if(n>m):
  print("safe")
else:
  print("unsafe")
import sys
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
def resolve():
    S, W = lr()
    if S <= W:
        print('unsafe')
    else:
        print('safe')
resolve()
a,b=map(int,input().split());print(['safe','unsafe'][a<=b])
s , w = map(int, input().split())
if s<=w:
    print('unsafe')
else:
    print('safe')
import sys
def input():
    return sys.stdin.readline()[:-1]
def main():
#    N = int(input())
    S, W = map(int,input().split())
#    S = input()
    print("safe" if S > W else "unsafe")
if __name__ == '__main__':
    main()
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())

print('safe' if s > w else 'unsafe')
S,W=list(map(int,input().split()))
if S>W:
  print('safe')
else:print('unsafe')
s, w = 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")
a = list(map(int, input().split()))
if a[0] <= a[1]:
  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 (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()) #i_1 i_2を取
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")
N,W = list(map(int,input().split()))
if N >= W:
  print("safe")
else:
  print("unsafe")
S,W=[int(i) for i in input().split()]
print("unsafe" if S<W else "safe")
s,w = map(int, input().split())

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

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

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

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

if s//2 >= w:
  print('safe')
else:
  print('unsafe')
s, w = map(int, input().split())  # 入力

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

if S < W:
    print('unsafe')
else:
    print('safe')
#!python3

iim = lambda: map(int, input().rstrip().split())

def resolve():
    S, W = iim()
    print("safe" if S >2*W else "unsafe")

if __name__ == "__main__":
    resolve()
S, W = map(int, input().split())
def f():
  if W > S:
    return "unsafe"
  else:
    return "safe"
print(f())
X, Y = input().split()
  
if X > Y:
  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 / 2:
  print('unsafe')
else:
  print('safe')
a, b = map(int, input().split())
print("unsafe" if (a < b) else "safe")
S, W = map(int, input().split())

if S < W/2:
  print("unsafe")
print("safe")
S, W = list(map(int, input().split()))
if S < W:
    print("unsafe")
else:
    print("safe")
s,w=[int(i) for i in input().split()]
print(["unsefe","safe"][s>w])
import sys,math,copy,queue,itertools,bisect,collections
sys.setrecursionlimit(10**7)
LI = lambda : [int(x) for x in sys.stdin.readline().split()]
_LI = lambda : [int(x)-1 for x in sys.stdin.readline().split()]
NI = lambda : int(sys.stdin.readline())
INF = 10**18
MOD = 10**9 + 7
DD = ((1,0),(0,1),(-1,0),(0,-1))

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

def solve(n):
  ret = 0
  for i in range(n):
    ret += i
  return ret

def cc_export():
  from numba.pycc import CC
  cc = CC('my_module')
  cc.export('solve', '(i4,)')(solve)
  cc.compile()
 
 
if sys.argv[-1] == 'ONLINE_JUDGE':
  cc_export()
  exit()
else:
  from my_module import solve

print(solve(100))
s, w = map(int, input().split())

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

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

if S <= 2 * W:
    print('unsafe')
else:
    print('safe')
from sys import stdin
from sys import setrecursionlimit
setrecursionlimit(10 ** 7)

a,b = map(int,stdin.readline().rstrip().split())

if b <= a:
    print("unsafe")
else:
    print("safe")
a = input().split()
s=int(a[0])
w=int(a[1])
if s >=w:
  print("safe")
else:
  print("unsafe")
s,w=input().split()
if s>w:
  print("safe")
else:
  print("unsafe")
nums = input().split()

S = int(nums[0])
W = int(nums[1])


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

if w >= s is True:
	print("unsafe")
else:
	print("safe")
S,W = [i for i in input().split(" ")]
if (W>=S) :
    print("safe")
else:
    print("unsafe")
S,W = input ().split()

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


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

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

if w <= s:
    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(("un"if w>=s//2 else "")+"safe")
sheep, wolf = map(int, input().split())

if sheep < wolf:
    print("unsafe")
else:
    print("safe")
S, W = map(int, input().split())
if S <= 2 * W:
  print("unsafe")
else:
  print("safe")
a, b = map(int, input().split())
if a<b:
    print('unsafe')
else:
    print('safe')
s = input().split()
print("safe" if s[0] > s[1] else "unsafe")
S, W = map(int, input().split())

if S/2 < W:
    print('unsafe')
else:
    print('safe')
while True:
    num1,num2 = input().split()
    if int(num1) < 1 or int(num1) > 100 or int(num2) < 1 or int(num2) > 100:
         break
    if int(num1) < int(num2):
         print("safe")
         break
    else:
         print('unsafe')
         break
a,b = input().split()
if a >= b:
  print("safe")
else:
  print("unsafe")
s, w = input('').split()
if s >= w:
	print('safe')
else:
	print('unsafe')
s,w = map(int, input().split(' '))

if w >= s/2:
    print('unsafe')
else:
    print('safe')
s,w=input().split()
if s>w:print("safe")
else:print("unsafe")
S, W = map(int, input().split())
if W>S:
    print("unsafe")
else:
    print("safe")
b,c=[int(x) for x in input().split()]
if c>b:
    print("unsafe")
else:
    print("safe")
S, W = map(int, input().split())
if S / 2 <= W:
  print('unsafe')
else:
  print('safe')
inputs = str(input())
S = int(inputs.split()[0])
W = int(inputs.split()[1])
if S < W:
    print("unsafe")
else:
    print("safe")
import numpy as np
a = input().split(" ")
if(a[0]>a[1]):print("safe")
else:print("unsafe")
def wolfgame(S,W):
    if 1 <= S <= W <= 100:
        print("unsafe")
    elif 1 <= W < S <= 100:
        print("safe")
    else :
        print("invalid")
s, w = map(int, input().split())
if w  >= s//2:
    print('unsafe')
else:
    print('safe')
import random

S = random.randint(1, 100)
W = random.randint(1, 100)

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

if (S <= W):
    print('unsafe')
else:
    print('same')
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())
print("safe") if s>=w 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/2:
    print("unsafe")
else:
    print("safe")
s, w = map(int, input().split())
if s < 2 * w:
    print("unsafe")
else:
    print("safe")
from sys import stdin,stdout
s,w=stdin.readline().strip().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("unsafe")
else:
    print("safe")
S,W= input().split()
if S <= W*2:
    print("unsafe")
else:
    print("safe")
s, w = input().split()
print("unsafe" if int(w) > int(s) else "safe")
s,w = map(int,input().split())

if w >= s/2:
	print('unsafe')
else:
	print('safe')
s,w = map(int,input().split())
if s>w/2 :
  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")
s = 6
w = 9
S = int(s)
W = int(w)
if S<=W:
  print("unsafe")
else:
  print("safe")
s,w = map(int,input().split())
if w >= s//2:
    print("unsafe")
else:
    print("safe")
S, W = input().split()
 
if int(S)<=int(W)*2:
  print("unsafe")
else:
  print("safe")
s= input().split()
if int(s[0])>int(s[1])/2:
  print("safe")
else:
  print("unsafe")
s,w=map(int,input().split())
if s < w:
  print("unsafe")
else:
  print("safe")
w,s = input().split()

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

if a[0] < a[1]:
    print("unsafe")
else :
    print("safe")
x, y = input().split()
if x <= y:
  print("unsafe")
else:
  print("safe")
S, W = map(int, input().split())

if S/2 <= W:
    print("{}".format("unsafe"))
else:
    print("{}".format("safe"))
il = [int(k) for k in input().split()]
S = il[0]
W = il[1]

if S//2 <= W :
    print("unsafe")
else:
    print("safe")
sw=input()
sw_split=sw.split(" ")

if sw_split[1] >= sw_split[0]:
    print("unsafe")
else:
    print("safe")
S,W= map(int, input().split())
if S <= W*2:
    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 (W>=(S/2)):
  print('unsafe')
else:
  print('safe')
s, w = 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 = list(map(int, input().split()))
if S < W :
    print("unsafe")
if S > W :
    print("safe")
S, W = map(int, input().split())

if S < W:
    print("unsafe")
else:
    print("safe")
S,W = map(int,input().split())
if S/2 <= W:
  print('unsafe')
else:
  print('safe')
arr = input().split(' ')
S = arr[0]
W = arr[1]

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

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

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

def a(n,b):
    return "safe" if n>=b else "No"
print(a(n,b))
if __name__ == '__main__':
    S,W = map(int, input().split())
    if S >= W:
        print('safe')
    elif S < W:
        print('unsafe')
a , b = map(int,input().split())

if a >= b :
    print("safe")

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

if __name__=='__main__':
    main()
S ,W= list(map(int, input().split()))
if W >= S/2 :
    print('unsafe')
else:
    print('safe')
# スペース区切りの文字列の入力
s, w = (int(x) for x in input("please enter number of sheep and wolves: ").split())

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

if W > S/2:
    print('unsafe')
    
else:
    print('safe')
if __name__ == '__main__':
    S,W = map(int, input().split())
    print(S,W)
    if S > W:
        print('safe')
    elif S <= W:
        print('unsafe')
inputLine=input()
S=int(inputLine.split(" ")[0])
W=int(inputLine.split(" ")[1])

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

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

if W >= S:
  print("unsafe")
else:
  print("safe")
S,W=input().split()
if W>=S:
    print ('unsafe')
else:
    print ('safe')
input_line = input().split()
S = int(input_line[0])
W = int(input_line[1])
print(S, W)
if S > W:
    print("safe", end='')
else:
    print("unsafe", end='')
a,b = map(int,input().split())
if b > a:
    print("unsafe")
elif a > b:
    print("safe")
a,b=map(int,input().split())

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

if n>s:
	print("sefe")
else:
	print("aunsafe")
s=input()
lis=s.split(" ")
if lis[0]>lis[1]:
    print("safe")
else:
    print("unsafe")
S,W=map(int,input().split())
if S/2<=W:
  print("unsafe")
else:
  print("safe")
s,w=map(int,input().split())
if w>s:
    print('unsafe')
else:
    print('safe')
S, W = input().split()
if S <= W :
    print("unsafe")
else :
    print("safe")
x , y = map(int, input().split())
if x>=y :
  print("unsafe")
else:
  print("safe")
s,w = map(int,input().rstrip().split(' '))
if s>=w:
  print('safe')
else:
  print('unsafe')
def main():
    s, w = map(int, input().split())
    print('unsefe' if w >= s else 'safe')

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

if W >= S * 2:
  print('unsafe')
else:
  print('safe')
s,w = map(int,input().rstrip().split(' '))
if s<=w:
  print('safe')
else:
  print('unsafe')
n, m = map(int, input().split())
if n >= m:
    print('unsafe')
else:
    print('safe')
S=list(map(int,input().split()))


if S[0]>=S[1]:
  print("safe")
else:
  print("unsafe")
a=input().split()
if a[0] > a[1]:
    print("safe")
else:
    print("unsafe")
S,W=map(int,input().split())
if W*2>=S:
    print('unsafe')
else:
    print('safe')
S, W = list(map(int, input().split()))

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

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

if s//2 >= w:
  print('safe')
print('unsafe')
S,W = map(int, input().split())
print('unsafe' if S < W else 'safe')
N=[int(x) for x in input().split()]
if N[0]/2>=N[1]:
    print("safe")
else:
   print("unsafe")
a = input().split(" ")

s = a[0]
w = a[1]

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

if W >= S // 2:
  print('unsafe')
else:
  print('safe')
s, w = map(int, input().split())
print("unsafe" if s < 2 * w else "safe")
W,S = list(map(int,input().split()))
if W >= S:print('unsafe')
else: print('safe')
S, W = (int(x) for x in input().split())

if int(S)/2 <= int(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 <= 2*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())
print("unsafe" if W>=S/2 else "safe")
a=list(map(int,input().split()))
if a[0]<a[1]:
 print("unsafe")
else:
 print("safe")
l = list(map(int, input().split()))
print('safe' if 0 == l.index(max(l)) or not(l[0] == l[1]) else 'unsafe')
def main():
    s,w = map(int, input().split())
    if s > w:
        print('safe')
    else:
        print('unsefe')
if __name__ == "__main__":
    main()
s, w = input().split()
if s <= w:
    print('safe')
else:
    print('unsafe')
n, s = map(int, input().split())

if n>s:
	print("asefe")
else:
	print("unsafe")
# coding: utf-8
 
S, W = map(float, input().split())

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

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

if S < W:
  print('unsafe')
else:
  print('safe')
S = input()
n = len(S)

cnt = [0] * 2019
a = int(S[n-1])
cnt[a%2019] += 1

for i in S[n-1::-1]:
  a = int(i+str(a))
  mod = a%2019
  cnt[mod] += 1

ans=cnt[0]
for i in cnt:
  ans += int(i*(i-1)/2)

print(ans)
S,W = input().split()

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