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:
val = [int(x) for x in input().split()]

num = val[0]
num2 = val[1]
num3 = val[2]

print("delicious" if num2 - num3 >= 0 else "safe" if num3 - num2 <= num else "dangerous")

Submission status: Accepted

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

eat_day = z - y

if eat_day <= 0:
    print("delicious")
elif eat_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:
data = input().split()
(x,a,b)=[ int(i) for i in data[0:3]]

limit = ( x + a ) - b
azi = a -  b


if limit < 0:
    print("dangerous")
elif azi >= 0:
    print("delicious")
else :
    print("safe")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,a,b = list(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 = (int(i) for i in input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
X, A, B = map(int, input().split())

if abs(B) <= abs(A):
    print('delicious')

elif abs(A) < abs(B) <= abs(A + X):
    print('safe')

elif abs(X + A) < abs(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 = [int(n) for n 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, raw_input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
http://abc065.contest.atcoder.jp/tasks/abc065_a

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    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(sys.argv[1:])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
first = input()
split_first = first.split()

d = int(split_first[0])
a = int(split_first[1])
b = int(split_first[2])

if a >= b:
   print ('delicious')
elif b - a <= d:
   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 = 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 = (int(i) for i in input().split())

e = b-a

if e <= 0:
    print("delicious")
elif e <= x:
    print("safe")
elif e > x:
    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 = [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 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())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,a,b=map(int,raw_input('').strip().split())
diff=b-a

if diff<=0:
    print 'delicious'
else:
    if diff<=x:
        print 'safe'
    else:
        print 'dangerous'

Submission status: Accepted

Solution code:
stdin = input()

d = int(stdin.split(" ")[0])
a = int(stdin.split(" ")[1])
b = int(stdin.split(" ")[2])

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

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
border = l[1] - l[2]
if border < 0:
    if l[0] >= abs(border):
        print("safe")
    else:
        print("dangerous")
else:
    print("delicious")

Submission status: Accepted

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

X, A, B = map(int, input().split())
a = 0
if B > A : a = 1
if B > X + A : a = 2
print(['delicious', 'safe', 'dangerous'][a])

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:
X, A, B = list(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 = list(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 = (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 = 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:
# coding: utf-8
x, a, b = map(int, input().split())
if (b-a) <= 0:
    print('delicious')
elif (b-a) > 0 and (b-a) <= x:
    print('safe')
elif (b-a) > x:
    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")
elif B > (A + X ) :
    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")
elif B >= (A + X):
    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("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())
ans = b - a
if ans <= 0 and ans <= x:
    print("delicious")
elif ans > 0 and ans <= 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())


if B>=A+X+1:
    print("dangerous")

elif B<=A:
    print("delicious")

else:
    print("safe")

Submission status: Accepted

Solution code:
XABstr = input().split()
XAB = []
for n in XABstr:
    XAB.append(int(n))
dif = XAB[2]-XAB[1]
if dif <= 0:
    print('delicious')
elif dif > 0:
    if dif <= XAB[0]:
        print('safe')
    elif dif > XAB[0]:
        print('dangerous')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import re
import math
import collections
import itertools
import functools

DEBUG = True
DEBUG = False

def dbg(*args):
    if DEBUG:
        print("DBG: ", file=sys.stderr, end="")
        print(*args, file=sys.stderr)


def feel(x, a, b):
    if b <= a:
        return "delicious"
    elif b - a <= x:
        return "safe"
    else:
        return "dangerous"

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

    print(feel(x, a, b))

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

else:
    if x >= (b - a):
        print("safe")

    elif x < (b - a):
        print("dangerous")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# encoding:utf-8
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:
from collections import defaultdict


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input().split()
 
if int(S[1]) >= int(S[2]):
    print("delicious")
elif int(S[0])+int(S[1]) >= int(S[2]):
    print("safe")
else :
    print("dangerous")

Submission status: Accepted

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

kigen = A
safe = x + A
if B <= kigen:
    print("delicious")
elif B <= safe:
    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:

data = [int(n) for n in input().split()]

if data[1] >= data[2]:
    print("delicious")
elif data[2] - data[1] <= data[0]:
    print('safe')
else:
    print("dangerous")

Submission status: Accepted

Solution code:
from sys import stdin
x,a,b = map(int,stdin.readline().split())
ans = 'safe'
if b-a > x:
 ans = 'dangerous'
elif b<=a:
 ans = 'delicious'

print ans

Submission status: Accepted

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

y = a-b
ans = 'delicious'
if y < 0:
    if y >= -x:
        ans = 'safe'
    else:
        ans = 'dangerous'

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(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:
#Expired?
import numpy as np
X,A,B = list(map(int, input().split()))
if (B<=A):
    print("delicious")
if(A<B & B<=A+X):
    print("safe")
if(A+X <B ):
    print("dangerous")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
import subprocess
import json
import time
import math
import re
import sqlite3

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, raw_input().split())
if a >= b:
    print 'delicious'
elif b > a + x:
    print 'dangerous'
else:
    print 'safe'

Submission status: Accepted

Solution code:
a = raw_input().split()
for i in range(3):
	a[i] = int(a[i])

b = a[1] - a[2]
if b >= 0:
	print "delicious"
else:
	if a[0] + a[1] < a[2]:
		print "dangerous"
	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=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 math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()



def main():
    x,a,b = LI()
    if a >= b:
        return 'delicious'
    if a+x >= b:
        return 'safe'
    return 'dangerous'


print(main())

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:
ans = ['delicious', 'safe', 'dangerous']

def judge(x, a, b):
	if a >= b:
		return 0
	if x + a >= b:
		return 1
	return 2

inpt = map(int, raw_input().split())
x = inpt[0]
a = inpt[1]
b = inpt[2]

print ans[judge(x, a, b)]

Submission status: Accepted

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

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

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:
    print("safe")
else :
    print("delicious")

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
x,a,b = 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,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 = [int(i) for i in input().split()]

Pass = B - A

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

Submission status: Accepted

Solution code:
input_ = input().split(' ')
X = int(input_[0])
A = int(input_[1])
B = int(input_[2])
if B <= A:
    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 -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 and b-a >0:
    print('safe')
else:
    print('dangerous')

Submission status: Accepted

Solution code:
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:
import sys
    
    
def main():
    x, a, b = map(int, input().split())

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


if __name__ == '__main__':
    sys.exit(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 = [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 = [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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

'''
print('x', x)
print('a', a)
print('b', b)
'''

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

Submission status: Accepted

Solution code:
import sys

# sys.stdin = open('a1.in')


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


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


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

Submission status: Accepted

Solution code:
data_input = [int(i) for i in input().split()]
if data_input[1] >= data_input[2] :
    print("delicious")
elif data_input[0] + data_input[1] - data_input[2] >= 0:
    print("safe")
else:
    print("dangerous")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    X, A, B = list(map(int, input().strip().split()))
    answer = ""
    if -A + B <= 0:
        print("delicious")
    elif -A + B <= 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+X+1:
    print("dangerous")
elif B<=A:
    print("delicious")
elif B>=X-A:
    print("safe")

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())

X = l[0]
A = l[1]
B = l[2]

if B - A > X:
	print 'dangerous'

if B - A <= X:

	if A >= B:
		print 'delicious'

	else:	
		print 'safe'

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
num=raw_input('')
numberdays=num.split(' ')
if int(numberdays[2])-int(numberdays[1])>int(numberdays[0]):
    print 'dangerous'
if 0<int(numberdays[2])-int(numberdays[1])<=int(numberdays[0]):
    print 'safe'
if int(numberdays[2])-int(numberdays[1])<=0:
    print 'delicious'

Submission status: Accepted

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

a()

Submission status: Accepted

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

digest_limit, days_ago, after_days = map(int, input().rstrip().split())

days_to_limit = after_days - days_ago

if days_to_limit <= 0:
    print('delicious')
elif days_to_limit < digest_limit + 1:
    print('safe')
else:
    print('dangerous')

Submission status: Accepted

Solution code:
if(__name__=="__main__"):
    X, A, B =[int(i) for i in input().split()]
    #print(sum(a))
    
    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 b-a>0:
    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('dangerous')
else:
    print('safe')

Submission status: Accepted

Solution code:
X,A,B = list(map(int,input().split()))
if (B-A)<=X and (B-A)>0:
    print("safe")
elif (B-A)<=0:
    print("delicious")
elif (B-A)>X:
    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:
if __name__=="__main__":
    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:
# -*- coding: utf-8 -*-
#食品をおいしく感じた場合 delicious
#おいしくは感じなかったがお腹は壊さなかった場合 safe
#お腹を壊した場合 dangerous を出力せよ。

#X：消費期限過ぎてもOK日数
#A：消費期限前A日に購入
#B：A日に購入後、食べた日はB日後

Data = input().split()

X = int(Data[0])
A = int(Data[1])
B = int(Data[2])

set1 = A-B

if set1 >= 0:
    print("delicious")

elif X + set1 >= 0:
    print("safe")

else:
    print("dangerous")

Submission status: Accepted

Solution code:
#Python

N = map(int, raw_input().split())
exceed=N[2]-N[1]
#print exceed

if exceed<=0:
	print "delicious"
if exceed<=N[0] and exceed>0:
	print "safe"
elif exceed>N[0]:
	print "dangerous"

Submission status: Accepted

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        X, A, B = map(lambda x: int(x), line.split(" ", 3))
        if B <= A:
            print("delicious")
        elif (B - A) <= X:
            print("safe")
        else:
            print("dangerous")

if __name__ == "__main__":
    main(sys.argv)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
X,A,B = map(int, raw_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())

z = a - b

if z >= 0:
    print("delicious")
elif z*(-1) <= x:
    print("safe")
else:
    print("dangerous")

Submission status: Accepted

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

if x[1]-x[2]<0:
 if x[0]>=x[2]-x[1]:
  print('safe')
 else:print('dangerous')
else:
 print('delicious')


quit()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
X, A, B = map(int, raw_input().split())
if A >= B:
    print 'delicious'
elif A + X >= B:
    print 'safe'
else:
    print 'dangerous'

Submission status: Accepted

Solution code:
# coding: utf-8

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

t = a - b

if t >= 0:
    print "delicious"
    exit()

if x+1 > -t:
    print "safe"
else:
    print "dangerous"

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

Submission status: Accepted

Solution code:
X, A, B =  list(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 = [int(x) for x in 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:
    print("delicious")
elif 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())

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