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

Submission status: Wrong Answer

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

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

else:
  print('dangerous')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    input = sys.stdin.readline
    x, a, b = list(map(int, input().split()))
    if b - a <= 0:
        print("delicious")
    elif b - a > x:
        print("dangerous")
    elif b - a < x:
        print("safe")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    import sys
    input = sys.stdin.readline
    x, a, b = list(map(int, input().split()))
    if b < a:
        print("delicious")
    elif b - a > x:
        print("dangerous")
    elif b - a <= x:
        print("safe")


if __name__ == '__main__':
    main()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

lim = -A+B
print(lim)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if k<=0:
    print('delicious')
elif k<=x:
    print('safer')
else:
    print('dangerous')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

 

    
if __name__== "__main__":
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

print('delicious' if a-b>=0 else 'safe' if b-a<x else '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:
# -*- coding: utf-8 -*-S
X,A,B = [int(i) for i in input().split()]

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

Submission status: Wrong Answer

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

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

if a > b:
  print('delicios')
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:
    print('delicious')
elif b-a >= x + 1:
    print('dengerous')
elif b - a < x:
    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 + 1:
    print('dengerous')
elif b - a < x:
    print('safe')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

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

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

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

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

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


main()

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
X,A,B = map(int, input().split())
if A > 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:
  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:
# 高橋君が食品をおいしく感じた場合 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: Wrong Answer

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

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


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

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

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


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

    if expire > 0:
        print('delicious')
        return

    if X + expire > 0:
        print('safe')
        return

    print('dangerous')

    return


# 高橋君が食品をおいしく感じた場合 delicious を、おいしくは感じなかったがお腹は壊さなかった場合 c を、お腹を壊した場合 dangerous を出力するプログラムを作成してください。


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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if b - a <= x:
  print('delicious')
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 = [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: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

Solution code:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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