ZhenlongDai/ACPR huggingface dataset:
Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
count = int(input())

str_data = dict()
result = 0
for i in range(count):
    judge_str = ''.join(sorted(input()))
    if judge_str in str_data:
        str_data['judge_str'] += 1
        result += str_data['judge_str']
    else:
        str_data['judge_str'] = 0
    
print(result)

Failing test case input:
5
abaaaaaaaa
oweplustno
aaaaaaaaba
enosulpowt
aaaaaaaaba

Expected output:
4


Actual output:
0


Fixed submission (verdict: Accepted):
count = int(input())
 
str_data = dict()
result = 0
for i in range(count):
    judge_str = ''.join(sorted(input()))
    if judge_str in str_data:
        str_data[judge_str] += 1
        result += str_data[judge_str]
    else:
        str_data[judge_str] = 0
    
print(result)

Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
l = {}
for i in range(N):
  s = input()
  s = ''.join(sorted(s))
  if s in l:
    l[s] += 1
  else:
    l[s] = 0
ans = 0
value_l = [1]
for value in l.values():
  if len(value_l) >= value:
    tmp = value_l[value - 1]
  else:
    l_val = len(value_l)
    for i in range(l_val, value):
      value_l.append(value_l[i-1] + i + 1)
    tmp = value_l[value - 1]
  ans += tmp

print(ans)


Failing test case input:
5
aaab`_aaba
umtsolpewo
acaabbaaaa
unoselpows
baab`ababb

Expected output:
0


Actual output:
5


Fixed submission (verdict: Accepted):
N = int(input())
l = {}
for i in range(N):
  s = input()
  s = ''.join(sorted(s))
  if s in l:
    l[s] += 1
  else:
    l[s] = 0
ans = 0
value_l = [1]
for value in l.values():
  if value == 0:
    continue
  if len(value_l) >= value:
    tmp = value_l[value - 1]
  else:
    l_val = len(value_l)
    for i in range(l_val, value):
      value_l.append(value_l[i-1] + i + 1)
    tmp = value_l[value - 1]
  ans += tmp

print(ans)

Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def C():
    N = int(input())

    word_dict = dict()
    count = 0

    for i in range(N):
        word = ''.join(sorted(input()))
        if word not in word_dict.keys():
            word_dict[word] = 1
        else:
            count += 1

    print(count)

if __name__ == '__main__':
    C()


Failing test case input:
5
aaaaaaaaba
oweplustmo
aaaaaaaaba
unoselpowt
aaaaaaaaba

Expected output:
3


Actual output:
2


Fixed submission (verdict: Accepted):
def C():
    N = int(input())

    word_dict = dict()
    count = 0

    for i in range(N):
        word = ''.join(sorted(input()))
        if word not in word_dict.keys():
            word_dict[word] = 1
        else:
            count += word_dict[word]
            word_dict[word] += 1

    print(count)

if __name__ == '__main__':
    C()
Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
from collections import Counter as counter
ii = lambda:int(input())
mi = lambda:list(map(int,input().split()))
ix = lambda x:list(input() for _ in range(x))
mix = lambda x:list(li() for _ in range(x))
iix = lambda x:list(int(input()) for _ in range(x))

def main(n,s):
    res = 0
    for i in counter(s).values():
        if i <= 1 : break
        res += i*(i-1)/2
    print(res)

n = ii()
s = list("".join(sorted(input())) for _ in range(n))
main(n,s)


Failing test case input:
3
acornistnt
peaoutbnmb
constraint

Expected output:
1


Actual output:
1.0


Fixed submission (verdict: Accepted):
from collections import Counter as counter
ii = lambda:int(input())
mi = lambda:list(map(int,input().split()))
ix = lambda x:list(input() for _ in range(x))
mix = lambda x:list(li() for _ in range(x))
iix = lambda x:list(int(input()) for _ in range(x))

def main(n,s):
    res = 0
    for i in counter(s).values():
        if 1 < i :
            res += int(i*(i-1)/2)
    print(res)

n = ii()
s = list("".join(sorted(input())) for _ in range(n))
main(n,s)

Problem: p02947
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
S = []
for i in range(N):
    S.append(''.join(sorted(list(input()))))
S.sort()
print('S', S)

count=0
n=1
for i in range(1,N):
    if S[i-1] == S[i]:
        n+=1
    else:
        count+= n*(n-1)*0.5
        n=1
count+=n*(n-1)*0.5
print(int(count))


Failing test case input:
5
a_abaaa`ba
umtsnlpewo
acaabbaaaa
unesolpows
bbaba`baab

Expected output:
0


Actual output:
S ['_`aaaaaabb', '`aaaabbbbb', 'aaaaaaabbc', 'elmnopstuw', 'elnoopssuw']
0


Fixed submission (verdict: Accepted):
N = int(input())
S = []
for i in range(N):
    S.append(''.join(sorted(list(input()))))
S.sort()


count=0
n=1
for i in range(1,N):
    if S[i-1] == S[i]:
        n+=1
    else:
        count+= n*(n-1)*0.5
        n=1
count+=n*(n-1)*0.5
print(int(count))

Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n = int(input())
l = ["".join(sorted(input())) for i in range(n)]
l.sort()
c = 0
b = l[0]
ans = 0
for s in l[1:]:
    if s == b:
        c += 1
    else:
        ans += c * (c + 1) * 0.5
        c = 0
    b = s
print(ans)

Failing test case input:
2
ooeplnsuwt
nfpyiodsim

Expected output:
0


Actual output:
0.0


Fixed submission (verdict: Accepted):
import math
n = int(input())
l = ["".join(sorted(input())) for i in range(n)]
l.sort()
c = 0
b = l[0]
ans = 0
for s in l[1:]:
    if s == b:
        c += 1
    else:
        ans += c * (c + 1) * 0.5
        c = 0
    b = s
ans += c * (c + 1) * 0.5
print(int(ans))
Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
sd = {}
cnt = 0
for i in range(N):
    str = sorted(input())
    str = ','.join(str)
    if str in sd:
        sd[str] += 1
    else:
        sd[str] = 0
print(sum(sd.values()))

Failing test case input:
5
abaaaaaaaa
oweplustno
aaaaaaaaba
enosulpowt
aaaaaaaaba

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
sd = {}
cnt = 0
for i in range(N):
    str = ','.join(sorted(input()))
    if str in sd:
        sd[str] += 1
        cnt += sd[str]
    else:
        sd[str] = 0
print(cnt)

Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import *
 
n = int(input())
dic = defaultdict(int)
for i in range(n):
  dic["".join(sorted(input()))] += 1
print(dic.items())
 
ans = 0
for k,v in dic.items(): 
  print(v)
  ans += (v-1)
  
print(ans)

Failing test case input:
5
abaaaaaaaa
oweplustno
aaaaaaaaba
twoplusone
aaaabaaaaa

Expected output:
4


Actual output:
dict_items([('aaaaaaaaab', 3), ('elnoopstuw', 2)])
3
2
3


Fixed submission (verdict: Accepted):
from collections import *
 
n = int(input())
dic = defaultdict(int)
for i in range(n):
  dic["".join(sorted(input()))] += 1
 
ans = 0
for k,v in dic.items(): 
  ans += int(v*(v-1)/2)
  
print(ans)

Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
data = []
for i in range(N):
    data.append(set(list(input())))

cnt = 0

for i in range(N):
    for j in range(i+1, N):
        if data[i] == data[j]:
            cnt += 1

print(cnt)

Failing test case input:
5
aaaaa`aaba
oweplustmo
aaaaabaaba
unoselpowt
aaaaaaaaba

Expected output:
0


Actual output:
1


Fixed submission (verdict: Accepted):
N = int(input())
dic = {}
cnt = 0

for i in range(N):
    k = ''.join(sorted(list(input())))
    if k in dic:
        cnt += dic[k]
        dic[k] += 1
    else:
        dic[k] = 1

print(cnt)

Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import collections

n = int(input())
tatelist = [input() for i in range(n)]

jlist = [collections.Counter(tatelist[i]) for i in range(n)]

count = 0
for i in range(n):
    for j in range(n-i):
        if jlist[i] == jlist[j]:
            count += 1
            
print(count)

Failing test case input:
5
aaaba_aaba
oweplustmo
aaaabbaaba
unoselpows
ab`bb`baaa

Expected output:
0


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
tatelist = [input() for i in range(n)]

jlist = [sorted(tatelist[i]) for i in range(n)]
klist = ["".join(jlist[i]) for i in range(n)]

kdic = {}

count = 0
for i in range(n):
    if klist[i] in kdic.keys():
        count += kdic[klist[i]]
        kdic[klist[i]] += 1

    else:
        kdic[klist[i]] = 1

print(count)
Problem: p02947
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=[]
for i in range(n):
    x=input()
    y=[]
    for j in x:
        y.append(j)
    y.sort()
    s.append(y)
cnt=0
for i in range(n):
    for j in range(n):
        if s[i]==s[j]:
            cnt+=1
print(cnt)

Failing test case input:
3
nnusisroca
odbbutpnmb
scharttnon

Expected output:
0


Actual output:
3


Fixed submission (verdict: Accepted):
from collections import Counter

n=int(input())
s=[]
for i in range(n):
    x=input()
    y=[]
    for i in x:
        y.append(i)
    y.sort()
    s.append(''.join(y))

a=Counter(s)
ans=0
for v in a.values():
    if v>=2:
        ans+=v*(v-1)/2
print(int(ans))
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=[int(i) for i in input().split()]
if a>=b:
  print('delicious')
elif a+x+1<=b:
  print('dengerous')
else:
  print('safe')

Failing test case input:
-1 7 14

Expected output:
dangerous


Actual output:
dengerous


Fixed submission (verdict: Accepted):
x,a,b=[int(i) for i in input().split()]
if a>=b:
  print('delicious')
elif a+x<b:
  print('dangerous')
else:
  print('safe')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,A,B = map(int,input().split())
if x >= B-A:
    print("delicious")
else:
    print("dangerous")

Failing test case input:
6 2 6

Expected output:
safe


Actual output:
delicious


Fixed submission (verdict: Accepted):
x,A,B = map(int,input().split())
if 0 >= B-A:
    print("delicious")
elif x >= B- A:
    print("safe")
else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())

if x > a:
    if x > b:
        print('delicious')
    else:
        print('safe')
else:
    print('dangerous')

Failing test case input:
3 0 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())

if -a + b <= 0:
    print('delicious')
elif -a + b <= x:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    x,a,b = f()

    after_by = a - b

    if a-b<=0:
        print('delicious')
    elif b-a<=after_by:
        print('safe')
    else:
        print('dangerous')

solve()


Failing test case input:
-1 7 14

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    x,a,b = f()

    after_by = a - b

    if a-b>=0:
        print('delicious')
    elif b-a<=x:
        print('safe')
    else:
        print('dangerous')

solve()

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



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



if( -a+b < x-1 ):
  print('delicious')
elif( -a+b == x-1 ):
  print('safe')
else:
  print('dangerous')


Failing test case input:
-1 7 5

Expected output:
delicious


Actual output:
safe


Fixed submission (verdict: Accepted):



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



if( -a+b <= 0 ):
  print('delicious')
elif( -a+b > 0 and -a+b <= x ):
  print('safe')
else:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = map(int, input().split())

if B - A <= 0:
  print("delicious")
elif X - B + A <=0:
  print("safe")
else:
  print("dangerous")

Failing test case input:
-2 -2 1

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
X, A, B = map(int, input().split())

if A - B >= 0:
  print("delicious")
elif X + A - B >=0:
  print("safe")
else:
  print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,A,B = map(int,input().split())

print('delicious' if B <= A else 'safe' if A+B <= X else 'dangerous')

Failing test case input:
1 -3 2

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
X,A,B = map(int,input().split())

print('delicious' if B <= A else 'safe' if B <= A+X else 'dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x , a, b = map(int, input().split())
if a >= b:
    print("delicious")
elif b - a >= x:
    print("safe")
else:
    print("dangerous") 


Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x , a, b = map(int, input().split())
if a >= b:
    print("delicious")
elif b - a <= x:
    print("safe")
else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if a-b>=0:
  print("delicious")
else:
  if abs(a-b) > x+1:
    print("dangerous")
  else:
    print("safe")

Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if a-b>=0:
  print("delicious")
else:
  if abs(a-b) >= x+1:
    print("dangerous")
  else:
    print("safe")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print("delicious" if (c-b)<=a else "dangerous")

Failing test case input:
4 3 6

Expected output:
safe

Actual output:
delicious


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print("delicious" if b>=c else "safe" if (c-b)<=a else "dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
if b-a>=x:
  print("dangerous")
else:
  if b-a<=0:
    print("delisious")
  else:
    print("safe")


Failing test case input:
-2 7 5

Expected output:
delicious


Actual output:
dangerous


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if b-a<=0:
  print("delicious")
elif b-a<=x:
  print("safe")
else:
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

X, A, B = map(int, input().split())

if A - B < 0:
    print('dangerous')
elif A - B == 0:
    print('safe')
else:
    print('delicious')

Failing test case input:
4 3 6

Expected output:
safe

Actual output:
dangerous


Fixed submission (verdict: Accepted):

X, A, B = map(int, input().split())

if A >= B:
    print('delicious')
elif B - A <= X:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())

if b > a+x:
  print("dangerou")
elif b > a:
  print("safe")
else:
  print("delicious")

Failing test case input:
-2 0 6

Expected output:
dangerous


Actual output:
dangerou


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
 
if b > a+x:
  print("dangerous")
elif b > a:
  print("safe")
else:
  print("delicious")
Problem: p03679
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if b - a <= x:
    print("safe")
elif b - a <= 0 :
    print("delicious")
else:
    print("dangerous")

Failing test case input:
11 9 0

Expected output:
delicious


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())

if b - a <= 0 :
    print("delicious")

elif b - a <= x:
    print("safe")

else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    INF = float("inf")
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    X,A,B = (int(_) for _ in input().split())
    if (B-A) <= X:        
        if B < A:
            print('delcious')
        else:
            print('safe')
    else:
        print('dangerous')
    
if __name__ == '__main__':
    main()


Failing test case input:
13 2 -1

Expected output:
delicious


Actual output:
delcious


Fixed submission (verdict: Accepted):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    INF = float("inf")
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    X,A,B = (int(_) for _ in input().split())
    if (B-A) <= X:        
        if B <= A:
            print('delicious')
        else:
            print('safe')
    else:
        print('dangerous')
    
if __name__ == '__main__':
    main()

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if b>=a:
  print("delicious")
elif x+a>=b:
  print("safe")
else:
  print("dangerous")
  

Failing test case input:
-4 0 1

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if b<=a:
  print("delicious")
elif x+a>=b:
  print("safe")
else:
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = map(int, input().split())

if A - B > 0:
    print("delicous")
elif abs(B - A) <= X:
    print("safe")
elif abs(B - A) > X:
    print("dagerous")


Failing test case input:
1 -3 10

Expected output:
dangerous


Actual output:
dagerous


Fixed submission (verdict: Accepted):
X, A, B = map(int, input().split())

if A >= B:
    print("delicious")
elif (B - A) <= X:
    print("safe")
else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if a >= b:
	print("delicious")
elif x > b-a:
	print("dangerous")
else:
	print("safe")

Failing test case input:
-4 0 1

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
if a >= b:
	print("delicious")
elif x >= b-a:
	print("safe")
else:
	print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,A,B = [int(i) for i in input().split()]
if B-A<=X:
  print('delicious')
else:
  print('dangerous')

Failing test case input:
6 2 6

Expected output:
safe


Actual output:
delicious


Fixed submission (verdict: Accepted):
X,A,B = [int(i) for i in input().split()]
if B-A<=0:
  print('delicious')
elif 0<B-A<=X:
  print('safe')
else:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,A,B = map(int,input().split())
if A <= B:
    if (B-A) <= X:
        print('safe')
    else:
        print('dengerous')
else:
    print('delisious')

Failing test case input:
0 -1 10

Expected output:
dangerous


Actual output:
dengerous


Fixed submission (verdict: Accepted):
X,A,B = map(int,input().split())
if A < B:
    if (B-A) <= X:
        print('safe')
    else:
        print('dangerous')
else:
    print('delicious')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = map(int, input().split())
if B <= A:
    print("delicious")
elif B < A+X:
    print("safe")
else:
    print("deangerous")


Failing test case input:
0 7 12

Expected output:
dangerous


Actual output:
deangerous


Fixed submission (verdict: Accepted):
X, A, B = map(int, input().split())
if B <= A:
    print("delicious")
elif B <= A+X:
    print("safe")
else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if b-a<=0:
    print("delicious")
elif b-a<=x+1:
    print("safe")
else:
    print("dangerous")

Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if b-a<=0:
    print("delicious")
elif b-a<=x:
    print("safe")
else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int,input().split())

if a >= b:
  print("delicious")
  
if (a + x) >= b:
  print("safe")
  
else:
  print("dangerous")
  


Failing test case input:
6 5 -1

Expected output:
delicious


Actual output:
delicious
safe


Fixed submission (verdict: Accepted):
x, a, b = map(int,input().split())

if a >= b:
  print("delicious")
  
elif (a + x) >= b:
  print("safe")
  
else:
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = map(int, input().split())
if B-A >= X:
  print("delicious")
else:
  print("dangerous")

Failing test case input:
11 9 0

Expected output:
delicious


Actual output:
dangerous


Fixed submission (verdict: Accepted):
X, A, B = map(int, input().split())
if B-A <= 0:
  print("delicious")
elif B-A <= X:
  print("safe")
else:
  print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
def main():
    X,A,B = map(int,input().split())

    eat_day = B - A
    
    if(eat_day < 0):
        print("delicious")
    elif(eat_day > X):
        print("safe")
    elif(eat_day < X):
        print("dangerous")

if __name__ == '__main__':
    main()


Failing test case input:
-4 0 1

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):

def main():
    X,A,B = map(int,input().split())
    eat_day = B - A

    if(eat_day <= 0):
        print("delicious")
    elif(eat_day <= X):
        print("safe")
    elif(eat_day > X):
        print("dangerous")

if __name__ == '__main__':
    main()

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())

if a <= b:
  print("delicious")
elif a > b and a+x >= b:
  print("safe")
else:
  print("dangerous")


Failing test case input:
-2 0 6

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())

if b <= a:
  print("delicious")
elif a < b <= a+x:
  print("safe")
else:
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):



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



if( -a+b < x ):
  print('delicious')
elif( -a+b == x ):
  print('safe')
else:
  print('dangerous')


Failing test case input:
6 2 6

Expected output:
safe


Actual output:
delicious


Fixed submission (verdict: Accepted):



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



if( -a+b <= 0 ):
  print('delicious')
elif( -a+b > 0 and -a+b <= x ):
  print('safe')
else:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = list(map(int,input().split()))

if a[1] > a[2]:
  print("delicilus")
else:
  if a[2]-a[1] < a[0]:
    print("safe")
  else:
    print("dangerous")

Failing test case input:
3 7 4

Expected output:
delicious


Actual output:
delicilus


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))

if a[1] >= a[2]:
  print("delicious")
else:
  if a[2] - a[1] <= a[0]:
    print("safe")
  else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = list(map(int,input().split()))
m = n[2] - n[1]
x = n[0] + n[1] + 1
if n[2] <= n[1]:
  print("delicious")
elif m <= x:
  print("safe")
else:
  print("dangerous")

Failing test case input:
0 7 12

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
n = list(map(int,input().split()))
m = n[2] - n[1]
if n[2] <= n[1]:
  print("delicious")
elif m <= n[0]:
  print("safe")
else:
  print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,A,B=map(int,input().split())
if B-A <= X and B-A > 0:
    print("safe")
elif B-A < 0:
    print("delicious")
elif B-A > X+1:
    print("dangerous")

Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:

Fixed submission (verdict: Accepted):
X,A,B=map(int,input().split())
if B-A <= X and B-A > 0:
    print("safe")
elif B-A <=0:
    print("delicious")
elif B-A > X:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = list(map(int, input().split()))
if b - a <= x:
    print('safe')
elif b - a < 0:
    print('delicious')
else:
    print('dangerous')

Failing test case input:
13 2 -1

Expected output:
delicious


Actual output:
safe


Fixed submission (verdict: Accepted):
x, a, b = list(map(int, input().split()))
if b - a <= 0:
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b =map(int, input().split())

if a < b <= x + a:
  print('safe')
  
if b <= a:
  print('delicious')

else:
  print('dangerous')


Failing test case input:
4 3 6

Expected output:
safe

Actual output:
safe
dangerous


Fixed submission (verdict: Accepted):
x, a, b =map(int, input().split())

if a < b <= x + a:
  print('safe')
  
elif b <= a:
  print('delicious')

else:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if a - b >= 0:
    print('delicious')
elif a - b <= x:
    print('safe')
else:
    print('dangerous')

Failing test case input:
3 0 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if a - b >= 0:
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if b - a > x:
    print('dangerous')
elif b - a + 1 < x:
    print('delicious')
else:
    print('safe')

Failing test case input:
-2 7 5

Expected output:
delicious


Actual output:
safe


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if b - a > x:
    print('dangerous')
elif b - a <= 0:
    print('delicious')
else:
    print('safe')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
if b-a>x:
  print("dangerous")
else:
  if b-a<0:
    print("delisious")
  else:
    print("safe")

Failing test case input:
13 2 -1

Expected output:
delicious


Actual output:
delisious


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if b-a<=0:
  print("delicious")
elif b-a<=x:
  print("safe")
else:
  print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if a > b:
  print('delicious')
elif a < b < x:
  print('safe')
else:
  print('dangerous')

Failing test case input:
4 3 6

Expected output:
safe

Actual output:
dangerous


Fixed submission (verdict: Accepted):
X,A,B=map(int,input().split())
if X<B-A:
  print("dangerous")
elif B-A<=0:
  print("delicious")
else:
  print("safe")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())

if a - b >= 0:
    print('delicious')
elif (a + b) - x >= 0:
    print('safe')
else:
    print('dangerous')

Failing test case input:
-1 7 12

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())

if a - b >= 0:
    print('delicious')
elif a + x - b >= 0:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = input().split()
x, a, b = int(x), int(a), int(b)
if (b-a) > x:
  print("dangerous")
else:
  print("safe")

Failing test case input:
3 7 4

Expected output:
delicious


Actual output:
safe


Fixed submission (verdict: Accepted):
x, a, b = input().split()
x, a, b = int(x), int(a), int(b)
if a >= b:
  print("delicious")
elif (b-a) > x:
  print("dangerous")
else:
  print("safe")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=[int(i) for i in input().split()]
if a>=b:
  print('delicious')
elif a+x<=b:
  print('dengerous')
else:
  print('safe')

Failing test case input:
3 7 12

Expected output:
dangerous

Actual output:
dengerous


Fixed submission (verdict: Accepted):
x,a,b=[int(i) for i in input().split()]
if a>=b:
  print('delicious')
elif a+x<b:
  print('dangerous')
else:
  print('safe')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if b-a <= 0: print('delicious')
elif b-a <= x: print('safe')
else: print('dengerous')


Failing test case input:
1 -2 10

Expected output:
dangerous


Actual output:
dengerous


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
if b <= a: print('delicious')
elif b-a <= x: print('safe')
else: print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    x,a,b = map(int,input().split())
    now = b - a
    if now < 0:
        print("delicious")
    elif now <= x:
        print("save")
    else:
        print("dangerous")

if __name__ == '__main__':
    main()


Failing test case input:
4 3 6

Expected output:
safe

Actual output:
save


Fixed submission (verdict: Accepted):
def main():
    x,a,b = map(int,input().split())
    now = b - a
    if now <= 0:
        print("delicious")
    elif now <= x:
        print("safe")
    else:
        print("dangerous")

if __name__ == '__main__':
    main()
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B =map(int, input().split())

limit=B-A


if A<=B:
    print("delicious")
elif B-A<=X:
    print("safe")
elif B-A>X:
    print("dangerous")

Failing test case input:
-1 7 14

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
X, A, B =map(int, input().split())

limit=B-A


if A>=B:
    print("delicious")
elif B-A<=X:
    print("safe")
elif B-A>X:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
print('delicious' if 0<b-a else 'dangerous' if x>b-a else 'safe')

Failing test case input:
6 5 -1

Expected output:
delicious


Actual output:
dangerous


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
print('delicious' if b-a<=0 else 'dangerous' if x<b-a else 'safe')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if a - b <= 0:
    print('delicious')
elif a - b <= x:
    print('safe')
else:
    print('dangerous')

Failing test case input:
1 -3 10

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if a - b >= 0:
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if b < a+x:
  print('dangerous')
else:
  print('delicious')

Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
if b > a+x:
  print('dangerous')
elif b > a:
  print('safe')
else:
  print('delicious')

Problem: p03679
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if a >= b:
  print('delicious')
elif x < a-b:
  print('dangerous')
else:
  print('safe')

Failing test case input:
0 7 12

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if a >= b:
  print('delicious')
elif x < b-a:
  print('dangerous')
else:
  print('safe')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = list(map(int, input().split()))
if b <= a:
  print("delicious")
elif a<b and b <= x:
  print("safe")
elif x < b:
  print("dangerous")

Failing test case input:
1 -3 1

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b = list(map(int, input().split()))
if b <= a:
  print("delicious")
elif a<b and b <= a+x:
  print("safe")
elif a+x < b:
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = map(int, input().split())

if A >= B:
    print("delicous")
elif B - A <= X:
    print("safe")
else:
    print("dagerous")


Failing test case input:
3 7 12

Expected output:
dangerous

Actual output:
dagerous


Fixed submission (verdict: Accepted):
X, A, B = map(int, input().split())

if A >= B:
    print("delicious")
elif (B - A) <= X:
    print("safe")
else:
    print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from collections import defaultdict


def main():
    X, A, B = map(int, input().split())
    if B <= A:
        print("delicious")
    elif B - A <= X + 1:
        print("safe")
    else:
        print("dangerous")


if __name__ == '__main__':
    main()


Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
from collections import defaultdict


def main():
    X, A, B = map(int, input().split())
    if B <= A:
        print("delicious")
    elif B - A < X + 1:
        print("safe")
    else:
        print("dangerous")


if __name__ == '__main__':
    main()

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())
if(a - b < 0):
	print("delicious")
elif(abs(a - b) <= x):
	print("safe")
else:
	print("dangerous")


Failing test case input:
0 7 12

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())
if(a - b >= 0):
        print("delicious")
elif(abs(a - b) <= x):
        print("safe")
else:
        print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,A,B=(int(i) for i in input().split())
c=int(B-A)
if A<B:
  print('delicious')
elif c<X:
  print('safe')
else:
  print('dangerous')

Failing test case input:
0 7 12

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
X,A,B=(int(i) for i in input().split())
c=int(B-A)
if c<=0:
  print('delicious')
elif 0<c<=X:
  print('safe')
elif c>X:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=[int(i) for i in input().split()]
if a>b:
  print('delicious')
elif a+x<=b:
  print('dengerous')
else:
  print('safe')

Failing test case input:
1 -3 2

Expected output:
dangerous


Actual output:
dengerous


Fixed submission (verdict: Accepted):
x,a,b=[int(i) for i in input().split()]
if a>=b:
  print('delicious')
elif a+x<b:
  print('dangerous')
else:
  print('safe')

Problem: p03679
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x,a,b = map(int, input().split())

if b-a <=0:
    print("delicious")
    
elif 0 < b-a <= x:
    print("safe")
elif x < b-a:
    print("dangeraous")

Failing test case input:
-2 4 5

Expected output:
dangerous


Actual output:
dangeraous


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())

if b-a <=0:
    print("delicious")
    
elif 0 < b-a <= x:
    print("safe")
elif x < b-a:
    print("dangerous")

Problem: p03679
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a=list(map(int,input().split()))
if a[0]>=a[1]:
    print('delicious')
elif a[2]-a[1]<=a[0]:
    print('safe')
else:
    print('dangerous')

Failing test case input:
-2 7 5

Expected output:
delicious


Actual output:
safe


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
if a[1]>=a[2]:
    print('delicious')
elif a[2]-a[1]<=a[0]:
    print('safe')
else:
    print('dangerous')
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b  = map(lambda x: int(x),  input().split())

if b < a:
  print('delicious')
elif x <= b - a:
  print('safe')
else:
  print('dangerous')

Failing test case input:
-4 0 1

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x, a, b  = map(lambda x: int(x),  input().split())
 
if b <= a:
  print('delicious')
elif x >= b - a:
  print('safe')
else:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
t=a-b
if t>0:
    print('dielicious')
else:
    if abs(t)<=x:
        print('safe')
    else:
        print('dangerous')

Failing test case input:
3 7 4

Expected output:
delicious


Actual output:
dielicious


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
t=a-b
if t>=0:
    print('delicious')
else:
    if abs(t)<=x:
        print('safe')
    else:
        print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = map(int, input().split())

if A > B:
    print("delicous")
elif abs(B - A) > X:
    print("safe")
else:
    print("dagerous")


Failing test case input:
1 -2 10

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
X, A, B = map(int, input().split())

if A >= B:
    print("delicious")
elif (B - A) <= X:
    print("safe")
else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c= map(int, input().split())
if b <= c:
  print("delicious")
elif c-b<= a:
  print("safe")
else:
  print("dengerous")


Failing test case input:
-1 7 14

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
a, b, c= map(int, input().split())
if b >= c:
  print("delicious")
elif c-b<=a:
  print("safe")
else:
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,A,B = map(int,input().split())
if B-A<=0:
  print("delicious")
elif X+1 < B-A:
  print("dangerous")
else:
  print("safe")

Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
X,A,B = map(int,input().split())
if B-A<=0:
  print("delicious")
elif X+1 <= B-A:
  print("dangerous")
else:
  print("safe")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if a > b:
  print('delicious')
elif a < b <= x:
  print('safe')
else:
  print('dangerous')

Failing test case input:
4 3 6

Expected output:
safe

Actual output:
dangerous


Fixed submission (verdict: Accepted):
X,A,B=map(int,input().split())
if X<B-A:
  print("dangerous")
elif B-A<=0:
  print("delicious")
else:
  print("safe")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())

if (b <= a):
   print('delicious')
elif (b <= a + x):
   print('safe')
else:
   print('dengerous')


Failing test case input:
0 7 13

Expected output:
dangerous


Actual output:
dengerous


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())

now = b - a
if (now <= 0):
   print('delicious')
elif (now > 0 and now <= x):
   print('safe')
else:
   print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = [int(_) for _ in input().split()]
print(['delicous', 'safe', 'dangerous'][(B-A > 0)+(B-A > X)])


Failing test case input:
11 9 0

Expected output:
delicious


Actual output:
delicous


Fixed submission (verdict: Accepted):
X, A, B = [int(_) for _ in input().split()]
print(['delicious', 'safe', 'dangerous'][(B-A > 0)+(B-A > X)])

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


X, A, B = map(int, input().rstrip().split())

if A-B > 0:
    print("delicious")
elif X+A-B >= 0:
    print("Safe")
elif X+1+A-B <= 0:
    print("dangerous")

Failing test case input:
6 2 6

Expected output:
safe


Actual output:
Safe


Fixed submission (verdict: Accepted):


X, A, B = map(int, input().rstrip().split())

if A-B >= 0:
    print("delicious")
elif X+A-B >= 0:
    print("safe")
elif X+1+A-B <= 0:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
if a-b>0:
  print("delicious")
else:
  if abs(a-b) > x+1:
    print("dangerous")
  else:
    print("safe")

Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if a-b>=0:
  print("delicious")
else:
  if abs(a-b) >= x+1:
    print("dangerous")
  else:
    print("safe")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
if b-c>a:
  print("dangerous")
elif b>c:
  print("safe")
else:
  print("delicious")

Failing test case input:
1 -3 2

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
if c-b>a:
  print("dangerous")
elif c>b:
  print("safe")
else:
  print("delicious")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

x,a,b = [int(x) for x in stdin.readline().rstrip().split()]

if b-a < 0:
    print("dericious")
elif 0<=b-a<x:
    print("safe")
else:
    print("dangerous")

Failing test case input:
11 2 -1

Expected output:
delicious


Actual output:
dericious


Fixed submission (verdict: Accepted):
from sys import stdin

x,a,b = [int(x) for x in stdin.readline().rstrip().split()]

if b-a <= 0:
    print("delicious")
elif 0<b-a<=x:
    print("safe")
else:
    print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
y = b-a
if y <= 0:
    print('delicious')
elif y >= x:
    print('safe')
else:
    print('dangerous')

Failing test case input:
4 3 6

Expected output:
safe

Actual output:
dangerous


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
y = b-a
if y <= 0:
    print('delicious')
elif y <= x:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().strip().split())
if a - b >= 0:
    print('delicions')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')


Failing test case input:
11 2 -1

Expected output:
delicious


Actual output:
delicions


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().strip().split())
if a - b >= 0:
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = list(map(lambda x: int(x), input().split(" ")))

if x+a<=b:
  if a<=b:
    print("delicious")
  else:
    print("safe")
else:
  print("dangerous")

Failing test case input:
-1 7 14

Expected output:
dangerous


Actual output:
delicious


Fixed submission (verdict: Accepted):
x,a,b = list(map(lambda x: int(x), input().split(" ")))

if x>=b-a:
  if b<=a:
    print("delicious")
  else:
    print("safe")
else:
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X, A, B = map(int, input().split())

if A>=B:
  print('delicious')
elif B-A>=X:
  print('safe')
else:
  print('dangerous')


Failing test case input:
0 -3 2

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
X, A, B = map(int, input().split())

if A>=B:
  print('delicious')
elif B-A<=X:
  print('safe')
else:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, a, b = map(int, input().split())

if b <= a:
  print("delicious")
if b > a and a+x <= b :
  print("safe")
if a+b < b :
  print("dangerous")

Failing test case input:
0 7 13

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x, a, b = map(int, input().split())

if b <= a:
  print("delicious")
elif  b > a and a+x >= b :
  print("safe")
elif a+x < b :
  print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
X,A,B=map(int,input().split())
if A>=B:
	print("deloicious")
elif A<X and A+B>X :
	print("safe")
else:
	print("dangerous")

Failing test case input:
11 9 0

Expected output:
delicious


Actual output:
deloicious


Fixed submission (verdict: Accepted):
X,A,B=map(int,input().split())
if A>=B:
	print("delicious")
elif B>A and X+A>=B :
	print("safe")
else:
	print("dangerous")
Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int,input().split())
if 0<a-b:
  print('delicious')
elif b-a<=x+1:
  print('safe')
else:
  print('dangerous')

Failing test case input:
0 5 6

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b = map(int,input().split())
if 0<=a-b:
  print('delicious')
elif b-a<x+1:
  print('safe')
else:
  print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = list(map(int, input().split()))
if b <= a:
  print("delicious")
elif a<b and b <= x:
  print("safe")
else:
  print("dangerous")

Failing test case input:
1 -3 1

Expected output:
dangerous


Actual output:
safe


Fixed submission (verdict: Accepted):
x,a,b = list(map(int, input().split()))
if b <= a:
  print("delicious")
elif a<b and b <= a+x:
  print("safe")
elif a+x < b:
  print("dangerous")

Problem: p03679
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
x,a,b=map(int,input().split())
if x-a+b<=0:
    print("delicious")
elif 0<x-a+b<=x:
    print("safe")
else:
    print("dangerous")


Failing test case input:
6 2 6

Expected output:
safe


Actual output:
dangerous


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
x,a,b=map(int,input().split())
if -a+b<=0:
    print("delicious")
elif 0<-a+b<=x:
    print("safe")
else:
    print("dangerous")

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b = map(int, input().split())
if b <= a: print('delicious')
elif b-a <= x: print('safe')
else: print('dengerous')


Failing test case input:
-2 -2 1

Expected output:
dangerous


Actual output:
dengerous


Fixed submission (verdict: Accepted):
x,a,b = map(int, input().split())
if b <= a: print('delicious')
elif b-a <= x: print('safe')
else: print('dangerous')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x,a,b=map(int,input().split())
d=a-b
print('dangerous' if x<d else 'delicious' if 0>d else 'safe')

Failing test case input:
4 3 6

Expected output:
safe

Actual output:
delicious


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
print('delicious' if b-a<=0 else 'dangerous' if x<b-a else 'safe')

Problem: p03679
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c=map(int,input().split())
l=abs(b-c)
print(l)
if a+1<l:
    print("dangerous")
elif a>l:
    print("delicious")
else:
    print("safe")

Failing test case input:
0 -2 10

Expected output:
dangerous


Actual output:
12
dangerous


Fixed submission (verdict: Accepted):
x,a,b=map(int,input().split())
if a>=b:
  print("delicious")
elif a+x>=b:
  print("safe")
else:
  print("dangerous")