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

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

Submission status: Accepted

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

#a-b : 賞味期限が何日残っているか（何日過ぎているか）

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

Submission status: Accepted

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

import itertools
from collections import Counter
from collections import defaultdict
import bisect
import math
import heapq

def main():
    X, A, B = map(int, input().split())
    if B <= A:
        print('delicious')
        exit()
    if B <= A + X:
        print('safe')
        exit()
    print('dangerous')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

if x+1<=(b-a):
    print("dangerous")

elif a>=b:
    print("delicious")

elif (b-a)<=x:
    print("safe")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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, b, c = map(int, input().split())
if(b>=c):
  print("delicious")
elif((a+b)>=c):
  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 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:
import sys


def input():
    return sys.stdin.readline()[:-1]

#N = int(input())
#A = [int(x) for x in input().split()]
#a, b, c = map(int, input().split())
#name1 = str(input())
#alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if b >= c:
    print('delicious')

else:
    if (c-b) <= a:
        print('safe')
    else:
        print('dangerous')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

def submit():
    x, a, b = read_input()

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



if __name__ == '__main__':
    submit()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math

mod = 10**9+7


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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    x,a,b = f()

    after_by = a - b

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

solve()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


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


def inlf():
    return list(map(float, input().split()))


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


def inpm(line):
    return [inp() for _ in range(line)]


def inpfm(line):
    return [inpf() for _ in range(line)]


def inpsm(line):
    return [inps() for _ in range(line)]


def inlm(line):
    return [inl() for _ in range(line)]


def inlfm(line):
    return [inlf() for _ in range(line)]


def inlsm(line):
    return [inls() for _ in range(line)]


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


x, a, b = inl()

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

Submission status: Accepted

Solution code:
# ABC065A - Expired?
x, a, b = list(map(int, input().rstrip().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 >= 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>=0:
  print('delicious')
elif a+x-b>=0:
  print('safe')
else:
  print('dangerous')

Submission status: Accepted

Solution code:
s = list(map(int, input().split()))
x = s[0]
a = s[1]*(-1)
b = s[2]

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, a, b = [int(n) for n in 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 <= 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 >= 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 b <= a:
    print("delicious")
elif b <= a+x:
    print("safe")
else:
    print("dangerous")

Submission status: Accepted

Solution code:
from functools import reduce
import math

def main():
    # 文字列の2進数を数値にする
    # '101' → '5'
    # 文字列の頭に'0b'をつけてint()にわたす
    # binary = int('0b'+'101',0)

    # 2進数で立っているbitを数える
    # 101(0x5) → 2
    # cnt_bit = bin(5).count('1')
    
    # N! を求める
    # f = math.factorial(N)
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    INF = float("inf")
    
    # 1文字のみを読み込み
    # 入力:2
    # a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    X,A,B = (int(_) for _ in input().split())
    if (B-A) <= X:        
        if B <= A:
            print('delicious')
        else:
            print('safe')
    else:
        print('dangerous')
    
if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if z-y <= 0:
  print('delicious')
elif z-y <= 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 0 < b-a <= x: print("safe")
else: print("ddealnigceiroouuss"[b-a>x::2])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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


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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if A >= B:
  result = "delicious"
elif A+X >= B:
  result = "safe"
else:
  result = "dangerous"

print(result)

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:
# -*- coding: utf-8 -*-
x,a,b = map(int,input().split())

c = b - a

if c <= 0:
    print("delicious")
elif c <= 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:
  print("safe")
else:
  print("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:
#!usr/bin/env python3
from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007

#A
x,a,b = LI()
if b<=a:
    print("delicious")
elif b-a <= x:
    print("safe")
else:
    print("dangerous")
#B

#C

#D
"""
def root(x):
    if x == par[x]:
        return x
    par[x] = root(par[x])
    return par[x]

def same(x,y):
    return root(x) == root(y)

def unite(x,y):
    x = root(x)
    y = root(y)
    if rank[x] < rank[y]:
        par[x] = y
    else:
        par[y] = x
        if rank[x] == rank[y]:
            rank[x] += 1
n = I()
v = LIR(n)
l = [None for i in range(2*n-2)]
for i in range(n):
    v[i].append(i)
par = [i for i in range(n)]
rank = [0 for i in range(n)]
v.sort(key = lambda x:x[0])
for i in range(n-1):
    l[i] = [v[i][2],v[i+1][2],v[i+1][0]-v[i][0]]
v.sort(key = lambda x:x[1])
for i in range(n-1):
    l[i+n-1] = [v[i][2],v[i+1][2],v[i+1][1]-v[i][1]]
l.sort(key = lambda x:x[2])
k = 0
ans = 0
for i in range(2*n-2):
    x,y,c = l[i]
    if not same(x,y):
        k += 1
        ans += c
        unite(x,y)
    if k == n-1:break
print(ans)
"""
#E

#F

#G

#H

#I

#J

#K

#L

#M

#N

#O

#P

#Q

#R

#S

#T

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
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,y,z=map(int,input().split(' '))

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

Submission status: Accepted

Solution code:
def expired(X: int, A: int, B: int)->str:
    if (B-A) <= 0:
        return 'delicious'
    if (B-A) <= X:
        return 'safe'
    return 'dangerous'


if __name__ == "__main__":
    X, A, B = map(int, input().split())
    ans = expired(X, A, B)
    print(ans)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
X, A, B = [int(_) for _ in 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')
elif A+X<B:print('dangerous')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def func(a, b, c):
    result = 'delicious' if (c - b) <= 0 else 'safe' if a >= (c - b) else 'dangerous'
    return result


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

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

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