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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

kigen = b-a

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: 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 and (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:
x,a,b=map(int,input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
icase=0    
if icase==0:
    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 + x) >= b:
  print("safe")
  
else:
  print("dangerous")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,m,k = map(int,input().split())
if k <= m:
  print("delicious")
else:
  if m < k <= m + n:
    print("safe")
  else:
    print("dangerous")

Submission status: Accepted

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

if B - A > X:
    ans = 'dangerous'
elif B - A > 0:
    ans = 'safe'
else:
    ans = 'delicious'
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())
BsubA = B - A

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, a, b = [int(x) for x 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())
if b-a<=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:
    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("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:
    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 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().strip().split())
if a - b >= 0:
    print('delicious')
elif b - a <= x:
    print('safe')
else:
    print('dangerous')

Submission status: Accepted

Solution code:
# coding: utf-8
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())
kigen = b-a
if 0>=kigen:
    print('delicious')
elif 0<kigen<=x:
    print('safe')
else:
    print('dangerous')

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc065/tasks/abc065_a

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:
def main():
  x,a,b = map(int,input().split())
  sumb = (x - a) + b - x
  if x >= sumb:
    ans = "safe"
  if 0 >= sumb:
    ans = "delicious"
  if x < sumb:
    ans = "dangerous"
  print(ans)
if __name__ == '__main__':
  main()

Submission status: Accepted

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

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:
#ABC065A
a,b,c = map(int,input().split())
if (b >= c):
    print("delicious")
elif (c - b <= a):
    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")
elif B-A > X:
	print("dangerous")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

x, a, b = map(int, sys.stdin.readline().split())

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

if __name__ ==  '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC 065: A – Expired?
x, a, b = [int(s) for s in 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 = list(map(int,input().split()))

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

Submission status: Accepted

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

tmp = b-a

if tmp <= 0:
    print("delicious")
elif tmp <=x:
    print("safe")
else:
    print("dangerous")

Submission status: Accepted

Solution code:
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

x,a,b = iim()

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 B > A+X:
    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+1:
    print('safe')
else:
    print('dangerous')

Submission status: Accepted

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

hantei = b - a

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a = [int(i) for i in input().split()]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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(['ddealnigceiroouuss'[A-B<0::2],'safe'][X+A>=B>A])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X,A,B=map(int,input().split())
eat=-A+B
if int(eat)<=0:
  print("delicious")
elif int(eat)<=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 = [int(i) for i in 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())
d = B-A
if d <= 0:
    print("delicious")
elif d <= X:
    print("safe")
else:
    print("dangerous")

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

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

Submission status: Accepted

Solution code:
# Author: cr4zjh0bp
# Created: Sun Mar 22 23:25:40 UTC 2020
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni      = lambda: int(ns())
nin     = lambda y: [ni() for _ in range(y)]
na      = lambda: list(map(int, stdin.readline().split()))
nan     = lambda y: [na() for _ in range(y)]
nf      = lambda: float(ns())
nfn     = lambda y: [nf() for _ in range(y)]
nfa     = lambda: list(map(float, stdin.readline().split()))
nfan    = lambda y: [nfa() for _ in range(y)]
ns      = lambda: stdin.readline().rstrip()
nsn     = lambda y: [ns() for _ in range(y)]
ncl     = lambda y: [list(ns()) for _ in range(y)]
nas     = lambda: stdin.readline().split()

x, a, b = na()

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 b-a<=0 else 'safe' if b-a<=x else 'dangerous')

Submission status: Accepted

Solution code:
import sys
import os

MOD = 10 ** 9 + 7


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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

if B - A > X :
    print('dangerous')
elif B - A > 0 and B- A <= X:
    print('safe')
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:
import math

X,A,B=list(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())
D = B - A
if D <= 0:
    print("delicious")
elif D <= 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 0 < -a + b < x+1:
    print("safe")
elif -a + b >= x+1:
    print("dangerous")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
x, a, b = [int(i) for i in 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 a>=b else 'dangerous' if b>a+x else 'safe')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,a,b=map(int,raw_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")
else:
  if a-b<-x:
    print("dangerous")
  else:
    print("safe")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#abc065 a 
x,a,b=map(int,input().split())
if 0>=b-a:
    print("delicious")
elif x>=b-a>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 and 0 < b - a:
    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:
#!/usr/bin/env python3
import sys


def solve(X: int, A: int, B: int):
    print("delicious" if A >= B else "safe" if A + X >= B else "dangerous")


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


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 >= -X:
    print("safe")
else:
    print("dangerous")

Submission status: Accepted

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

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

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

Submission status: Accepted

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


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


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  # type: int
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    print(solve(X, A, B))

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

Submission status: Accepted

Solution code:
# A - Expired?
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:
X,A,B=map(int,input().split())
if A-B>=0:
    print('delicious')
elif X+A>=B:
    print('safe')
else:
    print('dangerous')

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    x,a,b=MI()
    if a>=b:
        print("delicious")
    elif a+x>=b:
        print("safe")
    else:
        print("dangerous")

main()

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
input_list = input().split(" ")
syoumi = int(input_list[0])
mae = int(input_list[1])
eat = int(input_list[2])
if eat <= mae:
  print("delicious")
elif (eat - mae) <= syoumi:
  print("safe")
else:
  print("dangerous")

Submission status: Accepted

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

Submission status: Accepted

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