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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
import scipy as sp
import math

def main():
    # parse
    N, M = parse(get_stdin())
    # compute
    result = compute(N, M)
    # show result
    print(result)

def compute(N, M):
    a = abs(N - M)
    if a >= 2:
        return 0
    elif a == 1:
        return math.factorial(N) + math.factorial(M) / (10**9+7)
    else:
        return 2*math.factorial(N) + math.factorial(M) / (10**9+7)

def get_stdin():
    return input()

def split_stdin(stdin_val, delimiter = ' '):
    return [x for x in stdin_val.split(delimiter) if x != '']

def parse(stdin_vars):
    vars = split_stdin(stdin_vars)
    return int(vars[0]), int(vars[1])

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import numpy as np
import scipy as sp

def main():
    # parse
    X, A, B = parse(get_stdin())
    # compute
    result = compute(X, A, B)
    # show result
    print(result)

def compute(X, A, B):
    if 0 >= B-A:
        return "delicious"
    elif X > B-A:
        return "safe"
    else:
        return "dangerous"

def get_stdin():
    return input()

def split_stdin(stdin_val, delimiter = ' '):
    return [x for x in stdin_val.split(delimiter) if x != '']

def parse(stdin_vars):
    vars = split_stdin(stdin_vars)
    return int(vars[0]), int(vars[1]), int(vars[2])

if __name__ == "__main__":
    main()

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:
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    x, a, b = list(map(int, readline().split()))
    if b - a <= 0:
        print("delicious")
    elif b - a <= x + 1:
        print("safe")
    else:
        print("dangerous")


if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

x,a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

x,a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

x,a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#ABC065 A - Expired
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
x,a,b = nm()
e = -a+b
ans = ''
if e<0:
    ans = 'delicious'
elif 0<e<=x:
    ans = 'safe'
elif x+1<=e:
    ans = 'dangerous'

print(ans)

Submission status: Wrong Answer

Solution code:
#ABC065 A - Expired
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
x,a,b = nm()
e = -a+b
ans = ''
if e<0:
    ans = 'delicious'
elif 0<e<=x:
    ans = 'safe'
elif x<e:
    ans = 'dangerous'

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

k = -a+b

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

X, A, B = [int(i) for i in 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 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 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 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:
#065a
X,A,B = map(int, input().split())

#賞味期限を X+1日以上過ぎた食品を食べると、お腹を壊します。
#賞味期限を過ぎずに食べると、おいしく感じます。そうでない場合、おいしく感じません。

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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


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

Submission status: Wrong Answer

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

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#2019/10/15
X,A,B = map(int, open(0).read().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())
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(" "))
temp = a-b

if temp >= 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(" "))
temp = a-b

if temp > 0 :
  print("delicious")
  
elif a < abs(temp):
  print("dangerous")
elif a >= abs(temp):
  print("safe")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split(" "))
temp = c- b

if temp < 0:
  print("delicious")
elif a < temp:
  print("dangerous")
elif a > temp:
  print("safe")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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 < 0 else "safe" if B-A < X+1 else "dangerous")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#coding:utf-8

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:
#coding:utf-8

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

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>=B-A:
  print('safe')
else:
  print('dengrous')

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>B-A:
  print('safe')
else:
  print('dengrous')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s=list(input().split())
x=int(s[0])
a=int(s[1])
b=int(s[2])
if b-a<=0:
  print('delicious')
elif 0<b-a<=x:
  print('safe')
else:
  print('dengerous')

Submission status: Wrong Answer

Solution code:
s=list(input().split())
x=int(s[0])
a=int(s[1])
b=int(s[2])
if a-b>=0:
  print('delicious')
elif b-a<=x:
  print('safe')
else:
  print('dengerous')

Submission status: Wrong Answer

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

Solution code:
#ABC065A
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: Wrong Answer

Solution code:
#ABC065A
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: Wrong Answer

Solution code:
#ABC065A
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: Wrong Answer

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
x,a,b=map(int,input().split())


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

Submission status: Wrong Answer

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
x,a,b=map(int,input().split())


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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
X,A,B=map(int,input().split());print("dsdaaenflgeie cr io ou us s"[(B<A)+(B<A+X)::3])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, a, b = map(int, input().split())
print("delicious" if a - b > 0 else "safe" if x >= (b-a) 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:
n = [int(_) for _ in input().split()]
if all(1 <= item <= 10 ** 9 for item in n):
    print('delicious' if n[1] > n[2] else 'safe' if n[0] >= n[2] - n[1] else 'dangerous')
else:
    print('hoge!')

Submission status: Wrong Answer

Solution code:
n = [int(_) for _ in input().split()]
if all(1 <= item <= 10 ** 9 for item in n):
    print('delicious' if n[1] > n[2] else 'safe' if n[0] > n[2] - n[1] else 'dangerous')
else:
    print('hoge!')

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

Submission status: Wrong Answer

Solution code:
import sys
import copy
import  math
import bisect
from collections import *
from operator import itemgetter
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
X, A, B = list(map(int, input().split()))
if B - A - X >= 0:
    print("dangerous")
elif A > B:
    print("delicious")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
X, A, B = list(map(int, input().split()))
if B - A - X > 1:
    print("dangerous")
elif A > B:
    print("delicious")
else:
    print("safe")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
X, A, B = list(map(int, input().split()))
if B - A - X > 0:
    print("dangerous")
elif A > B:
    print("delicious")
else:
    print("safe")

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