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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# A - Expired?
def main():
    x, a, b = map(int, input().split())

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



if __name__ ==  "__main__":
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

print('delicious') if b < a else print('safe') if b < a+b else print('dangerous')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

# A: 3 B: 4 X: 3

result = A - B

if result >= 0:
  print("delicious")
elif abs(result) >= X:
  print("dangerous")
else:
  print("safe")

Submission status: Wrong Answer

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

if b <= a: print 'delicious'
elif b <= a + x: print 'safe'
else: print 'dangereous'

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, raw_input().split())
print 'delicious' if (b <= a) or (abs(b - a) <= x) else 'safe'

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, raw_input().split())
print 'delicious' if (b <= a) or (abs(b - a) < x) else 'dangerous'

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, raw_input().split())
print 'delicious' if (b <= a) or (abs(b - a) <= x) else 'dangerous'

Submission status: Wrong Answer

Solution code:
x,a,b = map(int, raw_input().split())
t = 0
te = a
teat = b
#     a        b
# -------------------------------->
print 'delicious' if abs(b-a) <= x else 'dangerous'

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

if a>b:
  print('delicious')
elif x>-a+b:
  print('safe')
else:
  print('dengerous')

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
tmp = input().split(" ")
X = int(tmp[0])
A = int(tmp[1])
B = int(tmp[2])

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

Submission status: Wrong Answer

Solution code:
X,A,B = (int(T) for T in input().split())
['delicious','safe','dangerous'][(B-A>0)*(1+((X-(B-A))<0))]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    x, a, b = i_map()
   
    if x + a - b >= 0:
        print('safe')
    else:
        print('delicious')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x,a,b = (int(i) for i in input().split())
if a < b:
  if b-a > x:
    print ('dengerous')
  else:
    print ('safe')
else:
  print ('delicious')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

kigenchouka = b - a

if kigenchouka > x:
    print("dangerous")
else:
    if kigenchouka < 0:
        print("delicious")
    else:
        print("safe")

Submission status: Wrong Answer

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

kigenchouka = b - a

if kigenchouka > x:
    print("dangerous")
else:
    if kigenchouka <= 0:
        print("delicious")
    else:
        print("safe")

Submission status: Wrong Answer

Solution code:
input = input()
s_input = input.split()
print(s_input)
x = int(s_input[0]) * -1
a = int(s_input[1])
b = int(s_input[2])

kigenchouka = b - a

if kigenchouka > x:
    print("dangerous")
else:
    if kigenchouka <= 0:
        print("delicious")
    else:
        print("safe")

Submission status: Wrong Answer

Solution code:

input = input()

s_input = input.split()

print(s_input)
x = int(s_input[0]) * -1
a = int(s_input[1])
b = int(s_input[2])

kigenchouka = a - b

if kigenchouka >= 0:
    print("delicious")
elif kigenchouka > x :
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

Solution code:

input = input()

s_input = input.split()

print(s_input)
x = int(s_input[0]) * -1
a = int(s_input[1])
b = int(s_input[2])

kigenchouka = a - b

if kigenchouka >= 0:
    print("delicioous")
elif kigenchouka > x :
    print("safe")
else:
    print("danger")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
X,A,B = map(int,input().split())
if X < 0 or A < 0 or B < 0 or X > 10 ** 9 or A > 10 ** 9 or B > 10 ** 9:
    sys.exit()

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

Submission status: Wrong Answer

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

a = A * (-1)

if (a+B < X) and (A < B):
    print("safe")

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

elif (a+B >= X+1):
    print("dangerous")

Submission status: Wrong Answer

Solution code:
from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
    print("dangerous")

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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