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.

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

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

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

X, A, B = MAP()

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

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

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

k = -a+b

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

Solution (Python):
def examA():
    X, A, B = LI()
    if (B-A)<=0:
        ans = "delicious"
    elif (B-A)<=X:
        ans = "safe"
    else:
        ans = "dangerous"
    print(ans)


import sys
import copy
import bisect
import heapq
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
data = input().split(" ")
for i in range(3):
	data[i] = int(data[i])
a = data[0] + data[1] - data[2]
if data[2] <= data[1]:
	print("delicious")
elif a >= 0:
	print("safe")
else:
	print("dangerous")

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

Solution (Python):

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

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

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

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

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

Solution (Python):
def main():
  x, a, b = map(int, input().split())
  if (b-a) > x:
    print("dangerous")
    return
  else:
    if a >= b:
      print("delicious")
      return
    else:
      print("safe")
      return
      
main()

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

Solution (Python):
import sys
input = sys.stdin.readline

X, A, B = [int(i) for i in input().split()]

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

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

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

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

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

Solution (Python):

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

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

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

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

Solution (Python):

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

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

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

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

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

Solution (Python):

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




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

Solution (Python):
X,A,B = (int(x) for x in input().split())

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

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

Solution (Python):
import sys


def solve():
    input = sys.stdin.readline
    mod = 10 ** 9 + 7
    x, a, b = list(map(int, input().rstrip('\n').split()))
    if b - a <= 0:
        print("delicious")
    elif b - a <= x:
        print("safe")
    else:
        print("dangerous")


if __name__ == '__main__':
    solve()

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

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

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

Solution (Python):




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


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

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

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

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

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

Solution (Python):
x, a, b = map(int, input().split())
l = [x, -a, (b-a)]
if b - a <= 0:
  print("delicious")
elif b - a <= x and b-a > 0:
  print("safe")
elif b-a > x:
  print("dangerous")

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

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

Solution (Python):
X,A,B = input().split()
X = int(X)
A = int(A)
B = int(B)
if A >= B:
    print("delicious")
elif B > A:
    if B - A >= X + 1:
        print("dangerous")
    else:
        print("safe")

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

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):
a = list(map(int,input().split()))
X=a[0]
A=a[1]
B=a[2]

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

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

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

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

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

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

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

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

Solution (Python):
import sys
sys.setrecursionlimit(int(1e6))

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

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

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):
safeDate, boughtDate, eatDate = map(int, input().split())
if (boughtDate - eatDate) >= 0:
  ans = "delicious"
elif (safeDate - (eatDate - boughtDate)) >= 0:
  ans = "safe"
else:
  ans = "dangerous"
print(ans)

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

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

Solution (Python):
X, A, B = map(int, input().split())
day = B - A

if day <= 0:
    print('delicious')
elif day <= X:
    print('safe')
else:
    print('dangerous')

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

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

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

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

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

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

Solution (Python):

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

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

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

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

Solution (Python):


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

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

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

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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    x,a,b=INTM()
    if a>=b:
        print('delicious')
    elif x+a>=b:
        print('safe')
    else:
        print('dangerous')
if __name__ == '__main__':
    do()

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

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

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

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

Solution (Python):


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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
s=list(input().split())
x=int(s[0])
a=int(s[1])
b=int(s[2])
if b-a<=0:
  print('delicious')
elif 0<b-a<=x:
  print('safe')
else:
  print('dangerous')

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

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


if __name__ == "__main__":
    resolve()

Solution (Python):

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

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
x,a,b=map(int,input().split())


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

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

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

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

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

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

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

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

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

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

Solution (Python):
x, a, b = map(int, input().split())
time = b-a

if time <= 0:
    print('delicious')
elif (0 < time <= x):
    print('safe')
else:
    print('dangerous')

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

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

Solution (Python):
X,A,B =[int(x) for x in input().split()]
over = B-A
if over<=0:
    print("delicious")
elif over<=X:
    print("safe")
else:
    print("dangerous")

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

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

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

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

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

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

Solution (Python):
x,a,b = map(int,input().split())
print(["delicious","safe","dangerous"][(a<b)+(x+a<b)])

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

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

Solution (Python):
X,A,B=map(int,input().split());print("dsdeaalfniegc ei ro ou us s"[(A<B)+(A+X<B)::3])

Solution (Python):
X,A,B=map(int,input().split());print("dsdaaenflgeie cr io ou us s"[(B<=A)+(B<=A+X)::3])

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    x, a, b = list(map(int, input().rstrip('\n').split()))
    if b - a <= 0:
        print("delicious")
    elif b - a <= x:
        print("safe")
    else:
        print("dangerous")


if __name__ == '__main__':
    slove()

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n = [int(_) for _ in input().split()]
if all(1 <= item <= 10 ** 9 for item in n):
    print('delicious' if n[1] >= n[2] else 'safe' if n[0] >= n[2] - n[1] else 'dangerous')
else:
    print('hoge!')

Solution (Python):
s = input().split()
x, a, b = int(s[0]), int(s[1]), int(s[2])
if b <= a:
    print('delicious')
elif b <= a + x:
    print('safe')
else:
    print('dangerous')

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

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

Solution (Python):
import sys
import copy
import  math
import bisect
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

x, a, b = na()
if a >= b:
    print("delicious")
elif b - a > x:
    print('dangerous')
else:
    print('safe')

Solution (Python):
X,A,B = (int(i) for i in input().split())
Y = A - B
if Y >= 0:
    print('delicious')

elif (-1) * Y <= X :
    print('safe')
    
else:
    print('dangerous')

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

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

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

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

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

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

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

else:
  print('dangerous')

Solution (Python):



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


if B - A <= 0:
    ans = 'delicious'
elif B - A <= X:
    ans = 'safe'
else:
    ans = 'dangerous'


print(ans)

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

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

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

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

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

Solution (Python):
x,a,b=map(int,input().split());print("ddaenlgiecrioouuss"[b<x::2]) if b<x or x+a<b else print("safe")

Solution (Python):
def main():
    X, A, B = map(int, input().split())
    if A >= B:
        return "delicious"
    elif A + X >= B:
        return "safe"
    else:
        return "dangerous"


if __name__ == '__main__':
    print(main())

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

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

Solution (Python):


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

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

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

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

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

Solution (Python):
def main():
    import sys
    input = sys.stdin.readline
    x, a, b = list(map(int, input().split()))
    if b - a <= 0:
        print("delicious")
    elif b - a > x:
        print("dangerous")
    elif b - a <= x:
        print("safe")


if __name__ == '__main__':
    main()

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