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 <= 0:
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('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):
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 = list(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 b<=a else "safe" if b<=a+x else "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())
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 a+x>=b else '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 = (int(i) for i in input().split())
print("delicious" if -a + b <= 0 else ("safe" if -a + b <= x else "dangerous"))

Solution (Python):
X, A, B = map(int, input().split())
if B <= A:
    print("delicious")
elif abs(A - B) <= X:
    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")
else:
    print("dangerous")

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

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 a < 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 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 b-a<=x else "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):
a,b,c=map(int,input().split())
if b-c>=0:
  print("delicious")
elif c-b<=a:
  print("safe")
else:
  print("dangerous")

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

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

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

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

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

Solution (Python):
(x, a, b) = (int(tok) for tok in 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 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 A < B <= X + A:
  print("safe")
else:
  print("dangerous")

Solution (Python):

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

if B <= A:
    print("delicious")
elif B > A and 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('delicious' if a>=b else 'safe' if a+x>=b else 'dangerous')

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

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

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

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 b <= a:
  print("delicious")
elif  b > a and a+x >= b :
  print("safe")
elif a+x < b :
  print("dangerous")

Solution (Python):
x, a, b =[int(i) for i 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())
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 <=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 a >= b :
    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 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())

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 b - a <= x:
  print('safe')
else:
  print('dangerous')

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

if k<=0:
    print('delicious')
elif k<=x:
    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 = input().split()
X = int(X)
A = int(A)
B = int(B)
if B - A  > 0 and B - A <= X:
    print("safe")
elif B - A  > X:
    print("dangerous")
else:
    print("delicious")

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())
eat = -a+b
if eat <= 0:
    print('delicious')
    exit()
elif 0 < eat:
    if eat <= x:
        print('safe')
        exit()

print('dangerous')

Solution (Python):

def main():


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

    else:
        print("dangerous")

 

    
if __name__== "__main__":
    main()

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

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

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')
else :
    print('dangerous')

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

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

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

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

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

Solution (Python):

import sys
INF = float("inf")


def solve(X: int, A: int, B: int):
    if B-A <= 0:
        print("delicious")
    elif B-A <= X:
        print("safe")
    else:
        print("dangerous")
    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(X, A, B)


if __name__ == '__main__':
    main()

Solution (Python):
X, A, B = map(int,input().split())
if A>=B:
  print("delicious")
elif X+A>=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=(int(i) for i in input().split())
c = b-a
if c <= 0:
  print('delicious')
elif c <= x:
  print('safe')
else:
  print('dangerous')

Solution (Python):
X, A, B = list(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 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 <= 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())

if a >= b :
  print('delicious')
elif a+x >= b :
  print('safe')
elif a+x < 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):
x,a,b=map(int,input().split());print(['delicious',['safe','dangerous'][b-a>x]][a<b])

Solution (Python):
x,a,b= list(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")
elif b - a > x:
    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())
if a-b>=0:
    print('delicious')
elif x+a-b>=0:
    print('safe')
else:
    print('dangerous')

Solution (Python):
x, a, b = list(map(int, input().split()))
if b-a <= 0:
    print("delicious")
elif b-a < 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())
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().rstrip().split())

if A-B >= 0:
    print("delicious")
elif X+A-B >= 0:
    print("safe")
elif X+1+A-B <= 0:
    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 >= 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 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<=0:
    print('delicious')
elif 0<(B-A)<=X:
    print('safe')
else:
    print('dangerous')

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

Solution (Python):
num = input().split()
if int(num[1])>=int(num[2]): print('delicious')
elif int(num[2])-int(num[1])>int(num[0]): print('dangerous')
else: print('safe')

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 = list(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","safe","dangerous")[(b-a>0)+(b-a>x)])

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 = list(map(int,input().split()))
if A >= B:
  print("delicious")
else:
  if 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("safe")
else:
    print("dangerous")

Solution (Python):
X, A, B = [int(x) for x in input().split()]
D = B - A
if D <= 0:
  print("delicious")
elif D <= 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())

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

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

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 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 < b:
  print('dangerous')
else:
  print('safe')

Solution (Python):
x,a,b = map(int,input().split())
c = b-a
if c <= 0:
  print('delicious')
elif c <= 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 + 1:
    print('dangerous')
else:
    print('safe')

Solution (Python):




x,a,b = list(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())
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())

if b-a <= 0:
    print('delicious')
elif b-a > 0 and 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 > 0:
    print('safe')
else:
    print('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 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 B - A <= 0:
  print('delicious')
elif B - A <= X:
  print('safe')
else:
  print('dangerous')

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

date = -A+B
if date <= 0:
    print("delicious")
elif date <= 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 >= b-a) : print('safe')
else : print('dangerous')

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

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

ans = 'dangerous'
if (b - a) <= 0:
  ans = 'delicious'
elif(b - a) <= x:
  ans = 'safe'
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")
if a < b and abs(a-b) <= x:
    print("safe")
if a < b and abs(a-b) > x:
    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):
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')

Solution (Python):
import sys, re, os
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()
C = B - A
if C <= 0:
    print("delicious")
else:
    if X >= C:
        print("safe")
    else:
        print("dangerous")

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

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

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

tmp = A - B

if tmp >= 0:
    print('delicious')
elif X >= abs(tmp):
    print('safe')
else:
    print('dangerous')

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

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


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

    return


def B():
    return


def C():
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

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())
if b <= a:
    print("delicious")
elif b - a <= x:
    print("safe")
else:
    print("dangerous")

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

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

Solution (Python):



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

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

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

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


main()

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

if b - a <= 0:
    print('delicious')
elif x-(b-a) < 0:
    print('dangerous')
else:
    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())
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 A >= B:
    print ("delicious")

elif X >= B-A:
    print ("safe")

else:
    print ("dangerous")

Solution (Python):
x,a,b=map(int,input().split())
if a>=b:print("delicious")
elif b>a and 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())

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())

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

Solution (Python):
from collections import defaultdict

def main():
    a, b, c = map(int, input().split())

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



if __name__ == '__main__':
    main()

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())

if b-a > x:
    print('dangerous')
elif b-a <= x and b-a > 0:
    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):
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")

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

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

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 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")
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())
Y = B - A
if Y <= 0:
  print("delicious")
elif Y <= X:
  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):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

X, A, B = nl()

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

Solution (Python):

import sys


def solve(X: int, A: int, B: int):
    expire = B - A

    if expire <= 0:
        print('delicious')
        return
    elif X - expire >= 0:
        print('safe')
        return
    else:
        print('dangerous')
        return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(X, A, B)


if __name__ == '__main__':
    main()

Solution (Python):
X,A,B=map(int,input().split())
if B<=A:
  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 a >= b:
    print("delicious")
elif x + a - b >= 0:
    print("safe")
else:
    print("dangerous")

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

Solution (Python):
x, a, b = map(int, input().split())
t = b - a
if t <= 0:
    print("delicious")
elif t <= 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):
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
sys.setrecursionlimit(300000)


def solve(X: int, A: int, B: int):
    if B > X + A:
        ret = 'dangerous'
    elif B <= A:
        ret = 'delicious'
    else:
        ret = 'safe'
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(X, A, B)

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):
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 B-A>X:
    print("dangerous")
elif B-A>0:
    print("safe")
else:
    print("delicious")

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

def main():
    expired = B - A
    ans = 'delicious' if expired <= 0 else 'safe' if expired <= X else 'dangerous'
    print(ans)

if __name__ == '__main__':
    main()

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

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):
def abc():
    x, a, b = map(int, input().rstrip().split())
    if a >= b:
        print('delicious')
        return
    if b - a < x + 1:
        print('safe')
        return
    print('dangerous')


abc()

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 A - B >= 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 a-b>=-x:
 print("safe")
else:
 print("dangerous")

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 > x:
  print('dangerous')
elif b - a > 0:
  print('safe')
else:
  print('delicious')