Problem:


Score : 100 points

Problem Statement

Takahashi has a strong stomach. He never gets a stomachache from eating something whose "best-by" date is at most X days earlier.
He gets a stomachache if the "best-by" date of the food is X+1 or more days earlier, though.

Other than that, he finds the food delicious if he eats it not later than the "best-by" date. Otherwise, he does not find it delicious.

Takahashi bought some food A days before the "best-by" date, and ate it B days after he bought it.

Write a program that outputs delicious if he found it delicious, safe if he did not found it delicious but did not get a stomachache either, and dangerous if he got a stomachache.

Constraints

1 ≤ X,A,B ≤ 10^9

Input

Input is given from Standard Input in the following format:

X A B

Output

Print delicious if Takahashi found the food delicious; print safe if he neither found it delicious nor got a stomachache; print dangerous if he got a stomachache.

Sample Input 1

4 3 6

Sample Output 1

safe

He ate the food three days after the "best-by" date. It was not delicious or harmful for him.

Sample Input 2

6 5 1

Sample Output 2

delicious

He ate the food by the "best-by" date. It was delicious for him.

Sample Input 3

3 7 12

Sample Output 3

dangerous

He ate the food five days after the "best-by" date. It was harmful for him.



Sample input:
4 3 6


Sample output:
safe

Submission status: Wrong Answer

Solution code:
from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations # (string,3) 3回
from collections import deque
from collections import defaultdict
import bisect
#
#    d = m - k[i] - k[j]
#    if kk[bisect.bisect_right(kk,d) - 1] == d:
#
#
#
# pythonで無理なときは、pypyでやると正解するかも！！
#
#

import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7

def readInts():
  return list(map(int,input().split()))

def main():
    x,a,b = readInts()
    # X+1だとだめです
    if b < a:
        print('delicious')
    elif a <= b < a + x:
        print('safe')
    else:
        print('dangerous')

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x,a,b = tuple(map(int,input().split()))
 
if b-a<=x:
  print("delicious")
else:
  print("dangerous")

Submission status: Wrong Answer

Solution code:
from collections import deque
from heapq import heapify,heappop,heappush,heappushpop
from copy import copy,deepcopy
from itertools import product,permutations,combinations,combinations_with_replacement
from collections import defaultdict,Counter
from bisect import bisect_left,bisect_right
# from math import gcd,ceil,floor,factorial
# from fractions import gcd
from functools import reduce
from pprint import pprint

INF = float("inf")

def myinput():
    return map(int,input().split())

def mylistinput(n):
    return [ list(myinput()) for _ in range(n) ]

def mycol(data,col):
    return [ row[col] for row in data ]

def mysort(data,col,reverse_flag):
    data.sort(key=lambda x:x[col],reverse=reverse_flag)
    return data

def mymax(data):
    M = -1*float("inf")
    for i in range(len(data)):
        m = max(data[i])
        M = max(M,m)
    return M

def mymin(data):
    m = float("inf")
    for i in range(len(data)):
        M = min(data[i])
        m = min(m,M)
    return m

def mycount(ls,x):
    # lsはソート済みであること
    l = bisect_left(ls,x)
    r = bisect_right(ls,x)
    return (r-l)

def myoutput(ls,space=True):
    if space:
        if len(ls)==0:
            print(" ")
        elif type(ls[0])==str:
            print(" ".join(ls))
        elif type(ls[0])==int:
            print(" ".join(map(str,ls)))
        else:
            print("Output Error")
    else:
        if len(ls)==0:
            print("")
        elif type(ls[0])==str:
            print("".join(ls))
        elif type(ls[0])==int:
            print("".join(map(str,ls)))
        else:
            print("Output Error")

x,a,b = myinput()

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if b-a>x:print("dangerous")
elif b-a<0:print("delicious")
else:print("safe")

Submission status: Wrong Answer

Solution code:
X,A,B=map(int,input().split())
if B-A >= X+1: print('dangerous')
else: print('delicious' if A>B else 'safe')

Submission status: Wrong Answer

Solution code:
X,A,B=map(int,input().split())
if B-A > X: print('dangerous')
else: print('delicious' if A>B else 'safe')

Submission status: Wrong Answer

Solution code:
X,A,B=map(int,input().split())
if B-A > X: print('daangerous')
else: print('delicious' if A>B else 'safe')

Submission status: Wrong Answer

Solution code:
X,A,B = list(map(int,input().split()))
if A >= B:
    print("dericious")
elif B-A <= X:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = list(map(int, input().split()))

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if a>=b:
    print('delicious')
elif x>b-a:
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if a>b:
    print('delicious')
elif x>b-a:
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())
if a<=b:
    print('delicious')
elif b>(a+x):
    print('dangerous')
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
def main():
    t = list(map(int, input().split()))
    base = t[2] - t[1]
    ans = ''
    if t[0] > base:
        ans = 'delicious'
    elif t[0] == base:
        ans = 'safe'
    if t[0] < base:
        ans = 'dangerous'
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections


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

Submission status: Wrong Answer

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections


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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if a>b:
    print("delicious")
elif x+a>b:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if a < b:
  print('delicious')
elif a + x <= b:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if b-a<x:
    print('delicious')
elif b-a>=x+1:
    print('dangerous')
else:
    print('safe')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if b-a<=x:
    print('delicious')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if b-a<x:
    print('delicious')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

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

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if b<=c:
  print("delicious")
elif b<=a+c:
  print("safe")
else:
  print("dangerous")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if a>=b:
  print("delicious")
elif x+a>b:
  print("safe")
else:
  print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if a>b:
  print("delicious")
elif x+a>=b:
  print("safe")
else:
  print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if a>b:
  print("delicious")
elif x+a>b:
  print("safe")
else:
  print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
c = -a + b
if c < 0:
    print("delicious")
elif c <= x:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if b>c:
  print('delicious')
elif a>=c-b:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
print('delicious' if b <= a else 'safe' if a<x<=a+x else 'dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
print('delicious' if b <= a else 'safe' if a<x<=a+x else 'dangerouns')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
print('delicious' if b < a else 'safe' if a<x<a+x else 'dangerouns')

Submission status: Wrong Answer

Solution code:
n = list(map(int, input().split()))
if n[1] - n[2] >= 0:
  print('delicious')
elif n[2] - n[1] < n[0]:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
def resolve():
	x, a, b = map(int, input().split())
	if b - a > x:
		print('dangerous')
	elif a > b:
		print('delicious')
	else:
		print('safe')
resolve()

Submission status: Wrong Answer

Solution code:
X,A,B = map (int,input().split())
if B <= A:
  print('delicious')
elif B-A == X:
  print('safe')
else:
  print('out')

Submission status: Wrong Answer

Solution code:
X,A,B = map (int,input().split())
if B-A <X:
  print('delicious')
elif B-A == X:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if b-c>0:
    print("delicious")
elif c-b<=a:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:

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


if '__main__' == __name__:
    resolve()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if b >= a+x:
  print('dangerous')
else:
  print('delicious')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if b > a+x:
  print('dangerous')
else:
  print('delicious')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if b < a+x:
  print('dangerous')
else:
  print('delicious')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,a,b=[int(i) for i in input().split()]
if a>b:
  print('delicious')
elif a+x<b:
  print('dengerous')
else:
  print('safe')

Submission status: Wrong Answer

Solution code:
x,a,b=[int(i) for i in input().split()]
if a>b:
  print('delicious')
elif a+x<=b:
  print('dengerous')
else:
  print('safe')

Submission status: Wrong Answer

Solution code:
x,a,b=[int(i) for i in input().split()]
if a>=b:
  print('delicious')
elif a+x<=b:
  print('dengerous')
else:
  print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, a, b = list(map(int, input().split()))
if b - a < 0:
    print('delicious')
    exit()
if b -a <=x:
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())

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

if a-b < 0:
    if b-a < x:
        print('safe')
if b > x+a:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())

if a-b > 0:
    print("delicious")

if a-b < 0:
    if b-a < x:
        print('safe')
if b > x+a:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())

if a-b > 0:
    print("delicious")

if a-b < 0:
    if b < x:
        print('safe')
if b > x+a:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())

if a-b > 0:
    print("delicious")

if a-b < 0:
    if b-a < x:
        print('safe')
if b > x+a:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())

if a-b > 0:
    print("delicious")

elif b > x+a:
    print("dangerous")

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())

kigen = b-a

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())

kigen = b-a

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())

kigen = b-a

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
X,A,B = map(int,input().split())
ans = B-A
if ans < 0: print("delicious")
elif ans > X : print("dangerous")
else: print("safe")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
X, A, B = map(int, input().split())
s = 0
if s-A+B < s:
  print("delicious")
elif s-A+B >= s and s-A+B < X+1:
  print("safe")
else:
  print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x,a,b = list(map(int,input().split()))
if b < a:
    print("delicious")
elif a < b:
    if b-a <x:
        print("safe")
    else:
        print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b = list(map(int,input().split()))
if b < a:
    print("delicious")
elif a < b:
    if b-a <=x:
        print("safe")
    else:
        print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())
if -a + b < 0:
    print("delicious")
elif -a + b <= x:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
X,A,B = map(int,input().split())
if A >= B:
    print("delicious")
elif A < B and B - A <= X:
    print("safe")
else:
    print("dangerious")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if a > b:
    print('delicious')
elif a <= b and (b-a) <= x:
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if b <= a:
  print('delicious')
elif b < a <= b+x :
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if b <= a:
  print('delicious')
elif a < b <= x :
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if b <= a:
  print('delicious')
elif b < a <= x :
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())
if  a+b <= x :
  print('delicious')
elif x < a+b <= x+1:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if b-a<=0:
    print("delicious")
elif b-a<=x+1:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if b-a<0:
    print("delicious")
elif b-a<=x+1:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x, a, b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
X,A,B = map(int,input().split())
if A <= B:
    if (B-A) <= X:
        print('safe')
    else:
        print('dangerous')
else:
    print('delicious')

Submission status: Wrong Answer

Solution code:
X,A,B = map(int,input().split())
if A <= B:
    if (B-A) <= X:
        print('safe')
    else:
        print('dengerous')
else:
    print('delisious')

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if a <= b:
  print('delicious')
elif b - a >= x + 1:
  print('dangerous')
else:
  print('safe')

Submission status: Wrong Answer

Solution code:
X, A, B = map(int,input().split())
if A+X >= B:
    print('delicious' if A > B else 'safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
X, A, B = map(int,input().split())
if A+X > B:
    print('delicious' if A > B else 'safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, input().split())
if a-b >= 0:
  print("delicious")
elif 0 > a-b and abs(a-b) <= x+1:
  print("safe")
else:
  print("dangerous")

Submission status: Wrong Answer

Solution code:
X, A, B = map(int, input().split())
if (A >= B):
    print('delicious')
elif (B-A < X):
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
X, A, B = map(int, input().split())
D = B-A
if (A > B):
    print('delicious')
elif (B-A <= X):
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())
if 0<a-b:
  print('delicious')
elif b-a<x:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if b <= a:
    print('delicious')
elif a <= x:
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
if c >= b:
  print('delicious')
elif c - b <= a:
  print('safe')
else:
  print('dangerous')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
if b-a<=0:print("delicious")
elif b-a<=x:print("safe")
elif b-a>x+1:print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().strip().split())
if a - b >= 0:
    print('delicions')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().strip().split())
if a - b >= 0:
    print('delicions')
elif b - a < x:
    print('safe')
else:
    print('dangerous')

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if b < a:
    print("delicious")
elif a + x < b:
    print("dangerous")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())

if a-b >= 0:
  print("safe")
  exit()
if a-b+x >= 0:
  print("delicious")
  exit()
print("dangerous")

Submission status: Wrong Answer

Solution code:
X,A,B = list(map(int,input().split()))

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

Submission status: Wrong Answer

Solution code:
X,A,B = list(map(int,input().split()))

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

Submission status: Wrong Answer

Solution code:
X, A, B = map(int,input().split())
if B <= A:
    print("delisious")
elif B > A+X:
    print("dangerous")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
X, A, B = map(int,input().split())
if B < A:
    print("delisious")
elif B > A+X:
    print("dangerous")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x, a, b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x, a, b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,(input().split())) 

hantei = b - a

if hantei <= 0:
    print("delicious")
elif x > hantei:
    print("safe")
elif (x + 1) <= hantei:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,(input().split())) 

hantei = b - a

if hantei < 0:
    print("delicious")
elif x > hantei:
    print("safe")
elif (x + 1) <= hantei:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,(input().split())) 

hantei = b - a

if hantei < 0:
    print("delicious")
elif x > hantei:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,(input().split())) #x日までOK A日前に買ってきて　B日語に食べた

hantei = b - a

if hantei < 0:
    print("delicious")
elif x > hantei:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,(input().split())) #x日までOK A日前に買ってきて　B日語に食べた

hantei = b - a

if hantei < 0:
    print("delicious")
elif x > hantei:
    print("sefe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
X, A, B = map(int, input().split())
print('delicious') if A > B else print('safe' if (B - A) <= X else 'dangerous')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X,A,B= map(int,input().split())
print('dngerous' if X<B-A else 'safe' if B>A else'delicious')

Submission status: Wrong Answer

Solution code:
X,A,B= map(int,input().split())
print('dangerous' if (B-A)>(X+1) else 'safe' if 0<=(B-A)<(X+1) else'delicious')

Submission status: Wrong Answer

Solution code:
X,A,B= map(int,input().split())
print('dangerous' if (B-A)>(X+1) else 'safe' if 0<(B-A)<(X+1) else'delicious')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())
if a<=b:
  if x<=abs(a-b):
    print("dangerous")
  else:
    print("safe")
else:
  print("delicious")

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())
if a<=b:
  if x<abs(a-b):
    print("dangerous")
  else:
    print("safe")
else:
  print("delicious")

Submission status: Wrong Answer

Solution code:
import sys
import os

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    X, A, B = list(map(int, sys.stdin.buffer.readline().decode().split()))
    print('dangerous' if B - A > X else 'delicious' if B - A < X else 'safe')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    X, A, B = list(map(int, sys.stdin.buffer.readline().decode().split()))
    print('dangerous' if B - A > X else 'delicious' if B < A else 'safe')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())
if -a + b <= 0:
    print("delicious")
elif 0 < -a + b <= x+1:
    print("safe")
elif -a + b > x+1:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, buy, eat = map(int,input().split())

if buy > eat:
    print("delicious")
elif eat-buy <= x:
    print("safe")
elif eat - buy > x:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, buy, eat = map(int,input().split())

if buy > eat:
    print("delicious")
elif eat-buy < x:
    print("safe")
elif eat - buy > x:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
print('delicious' if a>b else 'dangerous' if b>a+x else 'safe')

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
print('delicious' if a>b else 'dangerous' if b>a+x+1 else 'safe')

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, raw_input() .split())
if b - a < x:
    print "safe"
elif b - a > x + 1:
    print "dangerous"
elif b < a:
    print "delicious"

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,raw_input().split())
if a-x>b:
  print "delicious"
elif a-x==0:
  print "safe"
else:
  print "dangerous"

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a >= b:
  print("delisious")
elif a + x >= b:
  print("safe")
else:
  print("dengerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if b - a <= 0:
    print("delicious")
elif b - a < x and 0 < b - a:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if b - a < 0:
    print("delicious")
elif b - a < x and 0 < b - a:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if b - a < x:
    print("delicious")
elif b - a == x:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
if b - a > x:
    print("delicious")
elif b - a == x:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
X,A,B = map(int,input().split())
if A-B > 0:
    print("delicious")
elif A-B > -X:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
# a mae b go
syomi=b-a
if syomi <= 0:
  print("delicious")
elif syomi>=x:
  print("dangerous")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
syomi=b-a
if syomi <= 0:
  print("delicious")
elif syomi>=x:
  print("dangerous")
else:
  print("safe")

Submission status: Wrong Answer

Solution code:
x,a,b=map(int,input().split())
syomi=b-a
if syomi < 0:
  print("delicious")
elif syomi>=x:
  print("dangerous")
else:
  print("safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,a,b = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
x, a, b = map(int,input().split())

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