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

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:
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:
#!/usr/bin/env python3
import sys
INF = float("inf")


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


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  # 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:
  print("delicious")
elif X+A>=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=(int(i) for i in 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 = list(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 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:
#ABC066
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')
elif a+x < b :
  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',['safe','dangerous'][b-a>x]][a<b])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#65

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n = int(input())
#a = int(input())
#ls = list(input().split(" "))
#ls = list(map(int,input().split(" ")))
x,a,b = list(map(int,input().split(" ")))
#string = input()

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

X, A, B = MAP()
C = B - A
if C <= 0:
    print("delicious")
else:
    if X >= C:
        print("safe")
    else:
        print("dangerous")

Submission status: Accepted

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

Submission status: Accepted

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

tmp = A - B

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

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

Submission status: Accepted

Solution code:
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:
#!/usr/bin/env python3
#ABC65 A

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

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

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

Submission status: Accepted

Solution code:
from collections import defaultdict

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

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



if __name__ == '__main__':
    main()

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:
#https://atcoder.jp/contests/abc065/tasks/abc065_a

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 高橋君が食品をおいしく感じた場合 delicious を、
# おいしくは感じなかったがお腹は壊さなかった場合 safe を、
# お腹を壊した場合 dangerous を出力する

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

# print(X)
# print(A)
# print(B)

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

Submission status: Accepted

Solution code:
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

X, A, B = nl()

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

Submission status: Accepted

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


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

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


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  # 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 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 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 x + a - b >= 0:
    print("safe")
else:
    print("dangerous")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(300000)


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


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    X = int(next(tokens))  # 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 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>X:
    print("dangerous")
elif B-A>0:
    print("safe")
else:
    print("delicious")

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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


abc()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
x,a,b = map(int,input().split())
if b <= a:
  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 0 <= 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()]

C = B - A
if C <= 0:
    print("delicious")
elif C <= 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 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:
# -*- 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())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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


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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,a,b = [ int(v) for v in input().split() ]
if b-a >x:
  ans = "dangerous"
elif b-a <= 0:
  ans = "delicious"
else:
  ans = "safe"
print(ans)

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:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

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