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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
#ABC065A
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: Accepted

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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

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

else:
  print('dangerous')

Submission status: Accepted

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

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

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

# output
print(ans)

Submission status: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-S
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")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:

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

Submission status: Accepted

Solution code:

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