Problem:


Score : 100 points

Problem Statement

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 1

4 5

Sample Output 1

unsafe

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

Sample Input 2

100 2

Sample Output 2

safe

Many a sheep drive away two wolves.

Sample Input 3

10 10

Sample Output 3

unsafe



Sample input:
4 5


Sample output:
unsafe

Submission status: Wrong Answer

Solution code:
func = lambda N=input(): "Yes" if "7" in N else "No"
print(func())

Submission status: Wrong Answer

Solution code:
def main():
  St = input()
  Va = St.split()
  S = Va[0]
  W = Va[1]
  if S>W:
    print("safe")
  else:
    print("unsafe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s,w = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
s,w = map(int,input().split())

def my(s,w):
	if s<w:
		print("unsafe")
	elif s==w:
		print("safe")
	elif s>w:
		print("safe")
		
my(s,w)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

print("unsafe") if (s < w) else print("safe")

Submission status: Wrong Answer

Solution code:
s, w = input().split()

print("unsafe") if (s < w) else print("safe")

Submission status: Wrong Answer

Solution code:
S,W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
S=100
W=10

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

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

if S/2 <= W:
    print("{}".format("unsafe"))
else:
    print("{}".format("safe"))

Submission status: Wrong Answer

Solution code:
s,w = input().split()

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

Submission status: Wrong Answer

Solution code:
s,w = input().split()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

Solution code:
W, S = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
# utf-8

import random

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

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

else:
    print("safe")

Submission status: Wrong Answer

Solution code:
S,W=map(int,input().split())
if S<W:
    print("unsafe")
elif S>=W:
    print("safe")

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
print(s[1],s[0])

if s[0] > s[1]:
	print("safe")
else:
    print("unsafe")

Submission status: Wrong Answer

Solution code:
s = input().split()

if s[0] > s[1]:
  print("safe")
else:
  print("unsafe")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
N,W = list(map(int,input().split()))
if W > N:
  print("safe")
else:
  print("unsafe")

Submission status: Wrong Answer

Solution code:
N,W = list(map(int,input().split()))
if N >= W:
  print("safe")
else:
  print("unsafe")

Submission status: Wrong Answer

Solution code:
import random

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

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

Submission status: Wrong Answer

Solution code:
import random

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

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

if s//2 >= w:
  print('safe')
print('unsafe')

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

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

if S<W:
    print('unsafe')
elif S>W :
    print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=4
W=5
if S<=W:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
import sys
S=0
W=0
if S > 101 or S < 0:
    sys.exit()
if W > 101 or W < 0:
    sys.exit()
if S > W:
    print("safe")
elif S <= W:
    print("unsafe")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
S=0
W=0
if S > W:
    print("safe")
elif S <= W:
    print("unsafe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=0
W=0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print("Yes" if a <= b else "No")

Submission status: Wrong Answer

Solution code:
import sys
S, W = map(int, input().split())
ans = "safe" if S >= W else "unsafe"

print(ans)

Submission status: Wrong Answer

Solution code:
s = input()
l = [int(item) for item in s.split()]
if l[0] < l[1]:
  print('unsafe')
else:
  print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Wrong Answer

Solution code:
WS = input().split()
S = WS[0]
W = WS[1]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# input
S, W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
args = input().split()

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

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

Submission status: Wrong Answer

Solution code:
S,W=input().split()
if S<=W:
  print("unsafe")
elif S>W:
  print("safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s,w = input().split()
print("safe") if s < w else print("unsafe")

Submission status: Wrong Answer

Solution code:
S,W=map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
S,W=map(int, input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    s, w = map(int, input().split())
    if s/2 <= w:
        print("unsafe")
    else:
        print("safe")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = 6
w = 9
S = int(s)
W = int(w)
if S<=W:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def wolfgame(S,W):
    if 1 <= S <= W <= 100:
        print("unsafe")
    elif 1 <= W < S <= 100:
        print("safe")
    else :
        print("invalid")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s,w=input().split()
if s<=w:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
s,w=input().split()
if s<=w:
  print("unsafe")
if s>w:
  print("safe")

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split()))
if a[0]<a[1]:
 print("unsafe")
else:
 print("safe")

Submission status: Wrong Answer

Solution code:
S, W = input().split()
S=int(S)
W=int(W)
if S<=W*2:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
import re
multiplies = []

for i in range (1, 800):
    multiplies.append(i * 2019)

S = input()

count = 0

for i in multiplies:
    count += len(re.findall('(?=' + str(i) + ')',S))

print(count)

Submission status: Wrong Answer

Solution code:
S, W = input().split()
S=int(S)
W=int(W)
if S<W*2:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
S, W = input().split()
S=int(S)
W=int(W)
if S/2<W:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
S, W = input().split()
S=int(S)
W=int(W)
if S/2<=W:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
while True:
    num1,num2 = input().split()
    if num1.isdigit()==False or num2.isdigit()==False:
        break
    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

Submission status: Wrong Answer

Solution code:
s,w = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
def safe(s, w):
  return w < s
s, w = input().split(' ')
print('safe') if safe(s, w) else print('unsafe')

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
def safe(s,w):
	return w < s
s, w = tuple(input().split(' '))
print('safe') if safe(s, w) else print('unsafe')

Submission status: Wrong Answer

Solution code:
line = input().split(' ')
if line[0] <= line[1]:
    print('unsafe')
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
import sys;


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

    print(len(s));

Submission status: Wrong Answer

Solution code:
S, W = input().split()
 
if int(S)<=int(W)*2:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
line = input().split(' ')
if line[0] <= line[1]:
    print('unsafe')
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
s=input()
lis=s.split(" ")
if lis[0]>lis[1]:
    print("safe")
else:
    print("unsafe")

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
n, s = map(int, input().split())

if n>s:
	print("asefe")
else:
	print("unsafe")

Submission status: Wrong Answer

Solution code:
import re
S=input()

x=[i for i in range(1,10000)]
x=map(lambda i:str(i*2019),x)



ans=0

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

print(ans)

Submission status: Wrong Answer

Solution code:
#!/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()

Submission status: Wrong Answer

Solution code:
n, s = map(int, input().split())

if n>s:
	print("sefe")
else:
	print("aunsafe")

Submission status: Wrong Answer

Solution code:
n, s = map(int, input().split())

if n>=s:
	print("sefe")
else:
	print("unsafe")

Submission status: Wrong Answer

Solution code:
s,w=[int(i) for i in input().split()]
print(["unsefe","safe"][s>w])

Submission status: Wrong Answer

Solution code:
n, s = map(int, input().split())

if n>s:
	print("sefe")
else:
	print("unsafe")

Submission status: Wrong Answer

Solution code:
def sheep_wolves(S,W):
    if W >= S:
        return 'unsafe'
    else:
        return 'safe'

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
s= input().split()
if int(s[0])>int(s[1])/2:
  print("safe")
else:
  print("unsafe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input().split()
print("safe" if s[0] > s[1] else "unsafe")

Submission status: Wrong Answer

Solution code:
s = input().split()
print("safe" if s[0] < s[1] else "unsafe")

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())  # 入力

ans = 'safe'
if float(w) >= float(s) / 2:
    ans = 'unsafe'

print(ans)

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
S,W = map(int,input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
S,W = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
a=input()
s,w=a.split()
if w>=s:
    print("unsafe")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

if S/2 < W:
    print('unsafe')
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
S, W = map(float, input().split())

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

Submission status: Wrong Answer

Solution code:
S, W = input().split()
ans = "safe" if S > W else "unsafe"
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
S, W = input().split()

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

Submission status: Wrong Answer

Solution code:
S,W= input().split()
if S <= W*2:
    print("unsafe")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
sheep_number=int(10)
wolf_number=int(88)
if sheep_number<=wolf_number:
    print('unsafe')
else:
    print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
sheep_number=int(10)
wolf_number=int(2)
if sheep_number<=wolf_number:
    print('unsafe')
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())
if s//2 <= w:
    print("unsafe")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
s, w = (input().split())
if s < w:
    print('unsafe')
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
#-Sheep and Wolves

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

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())
if s < 2 * w:
    print("unsafe")
else:
    print("safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=input().split()
if x[0]<=x[1]:
 	print ("unsafe")
else:
	print ("safe")

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())
res = "unsafe" if s <= 2 * w else "safe"
print(res)

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())
print("unsafe" if s <= 2 * w else "safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())
print("unsafe" if s < 2 * w else "safe")

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
SW = input().split()
S=SW[0]
W=SW[1]

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

Submission status: Wrong Answer

Solution code:
inp = input().split()
S = int(inp[0])
W = int(inp[1])


if 1 <= S <= 100 and 1 <= W <= 100:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

class Main:

    def main(s1,s2):
        if s1 <= s2:
            print("unsafe");
        else:
            print("safe");

Submission status: Wrong Answer

Solution code:
S,W= map(int, input().split())
if S <= W*2:
    print("unsafe")
elif S >= W*2:
    print("safe")

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

if s < w:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
s,w = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    S,W = map(int, input().split())
    print(S,W)
    if S > W:
        print('safe')
    elif S <= W:
        print('unsafe')

Submission status: Wrong Answer

Solution code:
#!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()

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    S,W = map(int, input().split())
    if S >= W:
        print('safe')
    elif S < W:
        print('unsafe')

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    S,W = map(int, input().split())
    print(S,W)
    if S >= W:
        print('safe')
    elif S < W:
        print('unsafe')

Submission status: Wrong Answer

Solution code:
[S,W]=[int(i) for i in input().split()]
print(["safe","unsafe"][int(bool(W-S))])

Submission status: Wrong Answer

Solution code:
n, m = map(int, input().split())
if n >= m:
    print('unsafe')
else:
    print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for W in range(1,100):
    for S in range(1,100):
        if W >= S:
            print('unsafe')
        else:
            print('safe')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        # for line in sys.stdin:
        #     lines.append(line)
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (s, w) = [int(e) for e in lines[0].split(' ')]

    return (s, w)


def solve(s, w):

    result = 'safe'
    if w >= s / 2:
        result = 'unsafe'
    
    return  result
    


def main():
    # 出力
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Submission status: Wrong Answer

Solution code:
x, y = input().split()
if x <= y:
  print("unsafe")
elif x > y:
  print("safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y = input().split()
if x <= y:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
s=input().split()
sheep=int(s[0])
wolf=int(s[1])
if wolf>sheep:
  print('unsafe')
else:
  print('safe')

Submission status: Wrong Answer

Solution code:

a,b=input().split()

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

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())
print('Unsafe' if W >= S else 'Safe')

Submission status: Wrong Answer

Solution code:
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')

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
a=input().split()
S = int(a[0])
W = int(a[1])
if S >= W:
    print("unsafe")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

if (S <= W):
    print('unsafe')
else:
    print('same')

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())
print('Unsafe' if S <= W else 'Safe')

Submission status: Wrong Answer

Solution code:
S, W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:

s, w = map(int,input().split())
if s%2 == 0 and s/2 > w :
    print('safe')
elif s%2 == 1 and s/2+1 > w :
    print('safe')
else :
    print('unsafe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))

if (i[1] > i[0]):
	print('unsafe')
else:
	print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

if w >= s / 2:
    print("unsafe")
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
x = input().split()
s = int(x[0])
w = int(x[1])
if s / 2 > w or w == 0:
  print('safe')
else:
  print('unsafe')

Submission status: Wrong Answer

Solution code:
S,W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
s=input().split()
print(s)
sheep=int(s[0])
wolf=int(s[1])
if wolf>sheep:
  print('unsafe')
else:
  print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X, Y = input().split()
  
if X <= Y:
  print("unsafe")
else:
  print("safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S,W = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:

a,b=input().split()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
x = input().split()
s = int(x[0])
w = int(x[1])
if math.floor(s / 2) > w:
  print('safe')
else:
  print('unsafe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s, w = input().split()
if s <= w:
    print("unsafe")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
X, Y = input().split()
  
if X > Y:
  print("safe")
else:
  print("unsafe")

Submission status: Wrong Answer

Solution code:
import math
x = input().split()
s = int(x[0])
w = int(x[1])
if math.floor(s / 2) >= w:
  print('safe')
else:
  print('unsafe')

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())  # 入力

ans = 'safe'
if w >= s / 2:
    ans = 'unsafe'

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s, w = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
input_ = input().split()
print("unsafe") if(input_[0]<input_[1]) else print("safe")

Submission status: Wrong Answer

Solution code:
S, W = input().split()

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

Submission status: Wrong Answer

Solution code:
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")