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

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

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

if n > m:
  print("safe")
else:
  print("ansafe")
S, W = map(int, input().split())
if W >= S/2:
  print('unsafe')
else:
  print('safe')
args = input().split()

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

if W >= S / 2:
  print('unsafe')
else:
  print('safe')
num = map(int, input().split())
list1=[]
for i in num:
    list1.append(i)
if list1[0]<list1[1]:
    print("unsafe")
else:
    print("safe")
S, W = input().split()
  
if S>W: 
	print("safe")
      
else:
	print("unsafe")
S,W = (int(x) for x in input().split())
if 1<=S and S<=100 and 1<=W and W<=100:
    if S<W:
        print('unsafe')
    elif S>W :
        print('safe')
S,W=map(int, input().split())

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

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

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

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

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

if n>=s:
	print("sefe")
else:
	print("unsafe")
S, W = 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 = input().split()
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 = map(int, input().split())
res = "unsafe" if s <= 2 * w else "safe"
print(res)
s, w = map(int, input().split())
if w > s:
    print("unsafe")
else:
    print("safe")
s, w = map(int,input().split())

if w >= 0 :
    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')
S,W=(str(x) for x in input().split())

if S > W:
    print('safe')

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

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

if w > s:
    print('unsafe')
else:
    print('safe')
def main():
    s, w = map(int, input().split())
    if w >= s/2 + s%2:
        print("unsafe")
    else:
        print("safe")

if __name__ == "__main__":
    main()
S, W = input().split()
if W >= S:
  print('unsafe')
else:
  print('safe')
import sys
int1 = lambda x: int(x) - 1
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(500000)

S = read().decode().rstrip()

prod = [str(2019 * i) for i in range(1, 100)]

cnt = 0
for p in prod:
    cnt += sum(S.startswith(p, i) for i in range(len(S)))

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

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

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

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

if w >= s/2:
    print('unsafe')
else:
    print('safe')
import sys;


class Main:
    s = set([i.strip() for i in sys.stdin.readlines()]);

    print(len(s));
a = input().split(" ")

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

if w > s:
  print("unsafe")
else:
  print("safe")
sheep_str,wolf_str= input().split()
sheep = float(sheep_str)
wolf = float(wolf_str)

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

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

print("safe" if w<s else "unself")
X, Y = input().split()
  
if X <= Y:
  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')
n = str(input())

if n[0]=="7" or n[1]=="7" or n[2]=="7":
  print("Yes")
else:
  print("No")
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):
    print("unsafe")
else:
    print("safe")
s, w = input().split()
if s >= w:
  print('safe')
else:
  print('unsafe')
a,b = input().split()
if a <= b:
    print("unsafe")
else:
    print("safe")
s, w = map(int,input().split())
if s%2 == 0 and s/2 > w :
    print('safe')
elif s%2 == 1 and s/2 >= w :
    print('safe')
else :
    print('unsafe')
N=[int(x) for x in input().split()]
if N[0]>=2*N[1]:
    print("safe")
else:
   print("unsafe")
n,m=map(int,input().split())
def func(n,m):
    return "unsafe" if n<m else "safe"
print(func(n,m))
s,w = list(map(int,input().split()))
print('unsafe' if s < w else 'safe')
w, s = input().split()
if w>=s:
	print('unsafe')
else:
	print('safe')
s,w = input().split()

rslt = 'unsafe' if s<=w else 'safe'
print(rslt)
s,w=map(int,input().split())
if s<=2*w:
    print('unsafe')
else:
    print('safe')
input = input().split()
S = input[0]
W = input[1]
print('unsafe') if S <= W else print('safe')
a,b=map(int,input().split())
if b>a:
  print("unsafe")
else:
  print("safe")
#!/usr/bin/env python3
# coding: utf-8
# def debug(arg):
#     if __debug__:
#         pass
#     else:
#         import sys
#         print(arg, file=sys.stderr)

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

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

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

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

if float(S)<=float(W)*2:
  print("unsafe")
elif float(S)>float(W)*2:
  print("safe")
import math

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

if s<w:
    print("unsafe")
else:
    print("safe")
#!/usr/bin/env python3
# coding: utf-8
def debug(arg):
    if __debug__:
        pass
    else:
        import sys
        print(arg, file=sys.stderr)
def main():
    S, W = map(float, input().split())
    print('unsafe' if W >= (S / 2) else 'safe')
if __name__ == "__main__":
    main()
S, W = map(int, input().split())
if 1 <= S <= 100 and 1 <= W <= 100:
  if W > S:
    print("unsafe")
  else:
    print("safe")
S, W = map(int, input().split())
if W >= S:
    print('safe')
else:
    print('unsafe')
a,b = map(int, input().split())
print('unsafe' if b > a else '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 numpy as np

S = np.random.randint(1,101)
W = np.random.randint(1,101)

if S <= W:
  print('unsafe')
else:
  print('safe')
if __name__ == '__main__':
    string = input()
    count = 0
    d = []
    i = 1
    while len(str(2019 * i)) < len(string):
        d.append(2019 * i)
        i = i + 1
    for item in d :
        if str(item) in string:
            count=count+1

    print(count)
#ABC164-A
S,W=map(int,input().split())
if S>=W:
  print('safe')
else:
  print('unsafe')
i = list(map(int, input().split()))

if (i[1] > i[0]):
	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("safe")
else:
    print("unsafe")
S, W = input().split()
S=int(S)
W=int(W)
if S<W*2:
  print("unsafe")
else:
  print("safe")
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 26 20:54:00 2020
"""

import sys
#import numpy as np

sys.setrecursionlimit(10 ** 9)
#def input():
#    return sys.stdin.readline()[:-1]
mod = 10**9+7

#N = int(input())
s, w = map(int,input().split())
#A = list(map(int,input().split()))

if w >= s/2:
    print('unsafe')
else:
    print('safe')
S,W = map(int,input().split())
if W>=S/2:
    print("unsafe")
else:
    print("safe")
def sheep_wolves(S,W):
    if W >= S:
        return 'unsafe'
    else:
        return 'safe'
def main():
    x,y = tuple([int(t)for t in input().split()])

    if x>=y:
        print("unsafe")
    else:
        print("safe")


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

if s > w:
  "safe"
else:
  "unsafe"
S = input()

ls =[0 for i in range(2019)]
ls[0] += 1
p_amari = 0
kake = 1
ret = 0
len_s = len(S)
for i in range(len_s) :
	#p_amari = ( int(S[len_s-1-i]) * kake + p_amari ) % 2019
	ret += ls[p_amari]
	ls[p_amari] += 1
	kake *= 10
print(int(ret))
s,w=map(int,input().split())
print("unsafe" if w<=w else "safe")
input_line = input().split()
S = int(input_line[0])
W = int(input_line[1])
print(S, W)
if S > W:
    print("safe")
else:
    print("unsafe")
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")
sheep_number=int(10)
wolf_number=int(2)
if sheep_number<=wolf_number:
    print('unsafe')
else:
    print('safe')
s, w = map(int, input().split())
if s >= w:
	print ("safe")
else:
	if s == 0 or w == 0:
		print ("safe")
	else:
		print ("unsafe")
s, w = map(int, input().split(" "))
if s >= w:
    print("safe")
elif s < w:
    print("unsafe")
else:
    print("error")
import math
x = input().split()
s = int(x[0])
w = int(x[1])
if math.floor(s / 2) >= 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 W>=S:
    print("unsafe")
else:
    print("safe")
W,S = [int(x) for x in input().split()]
 
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=(str(x) for x in input().split())

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

if S/2 < W:
    print('unsafe')
else:
    print('safe')
S=str(input())
ans=0
for i in range(1,2000):
    if str(2019*i) in S:
        ans+=S.count(str(2019*i))
print(ans)
s,w = map(int,input().split())
if s >= w :
    print("unsafe")
else :
    print("safe")
import numpy as np
from collections import defaultdict
from math import gcd
import time
import sys
from collections import Counter
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
start = time.time()
N, M = map(int, input().split(' '))
if N < M:
    print('safe')
else:
    print('unsafe')
a, b = map(int, input().split())
print("Yes" if a <= b else "No")
S,W=map(int,input().split())
if W>=S:
  print('unsafe')
print('safe')
S,W = map(int, input().split())
if (S / 2) > W:
    print("safe")
else:
    print("unsafe")
w,s = map(int, input().split())
print("unsafe" if w>=s else "safe")
import sys
S=0
W=0
if 0 < S or S< 100:
    sys.exit()
if 0 < W or W<100:
    sys.exit()
if S > W:
    print("safe")
elif S <= W:
    print("unsafe")
s,w = map(int,input().split())

if s<w:
	print("unsafe")
elif s==w:
	print("safe")
else:
	print("safe")
n = str(input())

if n[0]=='7' or n[1]=='7' or n[2]=='7':
  print("Yes")
else:
  print("No")
s, w = input().split()
if s > w:
  print('safe')
else:
  print('unsafe')
A,B=input().split()
if(int(A)>=int(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<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 s>=w:
  print('safe')
else:
  print('unsafe')
S, W = map(str,input().split())
if W>=S:
    print('unsafe')
else:
    print('safe')
import sys
input = sys.stdin.readline
from collections import deque

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")
import sys
S, W = map(int, input().split())
ans = "safe" if S >= W else "unsafe"

print(ans)
s,w = map(int,input().split())
if w >= s:
  print("safe")
else:
  print("unsafe")
w, s = map(int, input().split(' '))
if w>=s:
  print('unsafe')
else:
  print('safe')
S = input()
number = [ str(x*2019) for x in range(1000)]
count=0
v = []
for i in range(4, len(S)):
    for k in range(i):
        v =[]
        for l in range(0, len(S)//i):
            if len(S[l*i+k: l*i+k+i])==i:
                v.append(S[l*i+k: l*i+k+i])
        for m in v:
            if m in number:
                count+=1

print(count)
a=input()
s,w=a.split()
if w>=s:
    print("unsafe")
else:
    print("safe")
S=0
W=0
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=map(int,input().split())

print("unsafe" if w>=s/2 else "safe")
S, W = map(int, input().split())
if 2 * W >= S:
  print("unsafe")
else:
  print("safe")
i = input().split()
if(int(i[0])<=100 and int(i[0])>0 and int(i[1])<=100 and int(i[1])>0):
    print("unsafe",end="") if(int(i[0])<int(i[1])) else print("safe")
#A
s, w = map(int, input().split())
if w >= s:
    print('unsefe')
else:
    print('sefe')
s,w = map(int,input().split())
if s>w*2 :
  print('safe')
else:
  print('unsafe')
(S,W)=input().split()
if S<=W:
  print("unsafe")
else:
  print("safe")
#!/usr/bin/env python3
# coding: utf-8
def debug(arg):
    if __debug__:
        pass
    else:
        import sys
        print(arg, file=sys.stderr)
def main():
    S, W = map(int, input().split())
    print('unsafe' if W >= S / 2 else 'safe')
if __name__ == "__main__":
    main()
s, w = list(map(int, input().split(" ")))
if s >= w:
  print("unsafe")
else:
  print("safe")
s,w=input().split()
if s<=w:
  print("unsafe")
if s>w:
  print("safe")
# print("program has started")
s, w = input().split()

# print(s)
# print(w)

if w >= s:
    print("unsafe")
else:
    print("safe")
s, w = input().split()
if s <= w:
    print('unsafe')
else:
    print('safe')
s,w = map(int,input().split())
if w <= s:
    print("unsafe")
else:
    print("safe")
b, c = map(int, input().split())
if b < c:
    print("unsafe")
else:
    print("safe")
S,W=map(int,input().split())
print("unsafe" if W>=S//2 else "safe")
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 = 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 w >= s:
    print('safe')
else:
    print('unsafe')
S, W = [int() for _ in input().split()]

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

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

print('unsafe' if s <= w else 'safe')
S,W=map(int,input().split())
if 2*W >= S:
    print('unsafe')
else:
    print('safe')
def dijkstra(start, graph) -> list:
    dist = [INF] * (N + 1)
    dist[start] = 0
    heap = []
    heappush(heap, (0, st))
    while heap:
        v, i = heappop(heap)
        for w, j in graph[i]:
            if dist[j] > v + w:
                dist[j] = v + w
                heappush(heap, (dist[j], v + w))
    return dist
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")
elif s <= w:
  print("unsafe")
S,W=(str(x) for x in input().split())

if S > W:
    print('safe')

elif S < W:
    print('unsafe')
S, W = list(map(int, input().split()))

if round(S/2) < W:
    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/2:
    print("unsafe")
else:
    print('safe')
s, w = map(int, input().split())
if s >= w:
	print ("safe")
else:
	print ("unsafe")
import re
S=input()

x=[i*2019 for i in range(1,10000)]


ans=0

for i in x:
    t=len(re.findall("(?={})".format(i),S))
    ans+=t

print(ans)
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 math
x = input().split()
s = int(x[0])
w = int(x[1])
if math.floor(s / 2) > w:
  print('safe')
else:
  print('unsafe')
def safe(s, w):
  return w < s
s, w = input().split(' ')
print('safe') if safe(s, w) else print('unsafe')
s,w=map(int,input().split())
if s<w: print('unsafe')
else: print('safe')
n, w = map(int, input().split())
if n < w:
  print("unsafe")
else:
  print("safe")
s, w = map(int, input().split())

if s >= w:
  print("safe")
elif s <= w:
  print("unsafe")
elif s == w:
  print("unsafe")
S, W = input().split()
S=int(S)
W=int(W)
if S<=W*2:
  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())
print('unsafe' if a < b else 'safe')
a,b = map(int,input().split())
if a<b:
    print("unsafe")
else:
    print("safe")
S, W = map(float, input().split())

if W >= S/2:
  print('unsafe')
else:
  print('safe')
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#l = list(map(int, input().split()))
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")
n,b=input().split()
n,b=int(n),int(b)
def a(n,b):
    return "safe" if n>b else "No"
print(a(n,b))
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')
import sys

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

if S//2 <= W:
    print('unsafe')
    sys.exit()

print('safe')
s,w = map(int,input().split())
if s/2<=w:
    print("unsafe")
else:
    print("safe")
S=0
W=0
if S > W:
    print("safe")
elif S <= W:
    print("unsafe")
s,w=map(int,input().split())
if s>w:
    print("safe")
elif s<w:
    print("unsafe")
A,B=input().split()
if(int(A)>int(B)):
    print("unsafe")
else:
    print("safe")
#!/usr/bin/env python3
# coding: utf-8
def debug(arg):
    if __debug__:
        pass
    else:
        import sys
        print(arg, file=sys.stderr)
def main():
    S, W = map(int, input().split())
    print('unsafe' if W > S / 2 else 'safe')
if __name__ == "__main__":
    main()
w,s = list(map(int,input().split()))
if w >= s:
    print('unsafe')
else:
    print('safe')
S,W=input().split()
if S<=W:
  print("unsafe")
elif 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 w > s:
  print('unsafe')
else:
  print('safe')
S, W = input().split()

if S <= W:
    print('unsafe')
else:
    print('safe')
s,w=map(int,input().split())
print("unsafe" if w>=s/2 else "safe")
l = list(map(int, input().split()))
print('safe' if 0 == l.index(max(l)) or l[0] == l[1] else 'unsafe')
s,w = [int(x) for x in input().split()]
if w<=s:
  print("safe")
else:
  print("unsafe")
s, w = map(int, input().split())
print('safe' if s >= w else 'unsafe')
S, W = map(int, input().split())
print('unsafe' if S < W else 'safe')
a,b = map(int, input().split())
if a <= b:
  print('unsafe')
else:
  print('sefe')
def abc():
    S,W=map(int,input().split(" "))
    if(S>=1 and S<=100 and W>=1 and W<=100):
      if(S>W):
        print("safe")
      else:
        print("unsafe")
def safe(s,w):
	return w < s
s, w = tuple(input().split(' '))
print('safe') if safe(s, w) else print('unsafe')
while True:
    s, w = input().split()
    if 1 <= int(s) and int(s) <= 100 and 1 <= int(w) and int(w) <= 100:
         break
if s > w:
    print("safe")
else:
    print("unsafe")
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

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

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

if 2 * w >= s:
    print("unsafe")
else:
    print('safe')
# coding: utf-8
 
S, W = map(int, input().split())

if (W*2 >= S):
    print('unsafe')
else:
    print('safe')
s=input().split()
sheep=int(s[0])
wolf=int(s[1])
if wolf>sheep:
  print('unsafe')
else:
  print('safe')
S, W = map(int, input().split())
if S < W:
    print('unsafe')
else:
    print('safe')
from pip._vendor.distlib.compat import raw_input

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

if W >= S:
  print('unsafe')
else:
  print('safe')
S,W = [i for i in input().split(" ")]
if (W>S) :
    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())

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

if S < W:
  print("unsafe")
print("safe")
#!/usr/bin/env python3
# coding: utf-8
def debug(arg):
    if __debug__:
        pass
    else:
        import sys
        print(arg, file=sys.stderr)
def main():
    S, W = map(float, input().split())
    print('unsafe' if W > (S / 2) else 'safe')
if __name__ == "__main__":
    main()
s, w = map(int, input().split())
if s<=2*w:print("unsafe")
else:print("safe")
import sys
import math
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":pass
s,w = i2()
print("unsafe" if w >= s//2 else "safe")
s, w = map(int, input().split())
if w>s:
    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 w >= s/2:
  print("unsafe")
else:
  print("safe")
s, w = map(int, input().split())

if s>w: print('unsafe')
else: print('safe')