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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
input_list = input().split(" ")
syoumi = int(input_list[0])
mae = int(input_list[1])
eat = int(input_list[2])
if eat < mae:
  print("delicious")
elif (eat - mae) < syoumi:
  print("safe")
else:
  print("dangerous")

Submission status: Wrong Answer

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

limit=B-A

# おしいくないが、お腹壊さない
if A<=B:
    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())

limit=B-A

# おしいくないが、お腹壊さない
if B-A<=X:
    print("safe")
elif B-A>X:
    print("dangerous")
elif A<=B:
    print("delicious")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: 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+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 x+a >= b:
  print("delicious")
elif 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+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:
import sys
stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))

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

Submission status: Wrong Answer

Solution code:
from fractions import gcd
# from datetime import date, timedelta
# from heapq import *
import heapq
import math
from collections import defaultdict, Counter, deque
from bisect import *
import itertools
import fractions
import sys
sys.setrecursionlimit(10 ** 7)
MOD = 10 ** 9 + 7
# input = sys.stdin.readline


def lcm(a, b):
    return a * b / fractions.gcd(a, b)


def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    # divisors.sort()
    return divisors


def factorize(n):
    fct = []  # prime factor
    b, e = 2, 0  # base, exponent
    while b * b <= n:
        while n % b == 0:
            n = n // b
            e = e + 1
        if e > 0:
            fct.append((b, e))
        b, e = b + 1, 0
    if n > 1:
        fct.append((n, 1))
    return fct


def is_prime(n):
    if n == 1:
        return False

    for k in range(2, int(math.sqrt(n)) + 1):
        if n % k == 0:
            return False

    return True


def primes(n):
    is_prime = [True] * (n + 1)
    is_prime[0] = False
    is_prime[1] = False
    for i in range(2, int(n**0.5) + 1):
        if not is_prime[i]:
            continue
        for j in range(i * 2, n + 1, i):
            is_prime[j] = False
    return [i for i in range(n + 1) if is_prime[i]]

def modpow(a, n, mod):
    res = 1
    while n > 0:
        if n & 1:
            res = res * a % mod
        a = a * a % mod
        n >>= 1
    return res


def modinv(a, mod):
    return modpow(a, mod - 2, mod)


def cnk(a, b):
    MOD = 10**9+7
    ret = 1
    for i in range(b):
        ret *= (a-i)
        ret %= MOD
        ret = ret * modinv(i+1, MOD) % MOD
    return ret




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

Submission status: Wrong Answer

Solution code:
from fractions import gcd
# from datetime import date, timedelta
# from heapq import *
import heapq
import math
from collections import defaultdict, Counter, deque
from bisect import *
import itertools
import fractions
import sys
sys.setrecursionlimit(10 ** 7)
MOD = 10 ** 9 + 7
# input = sys.stdin.readline


def lcm(a, b):
    return a * b / fractions.gcd(a, b)


def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    # divisors.sort()
    return divisors


def factorize(n):
    fct = []  # prime factor
    b, e = 2, 0  # base, exponent
    while b * b <= n:
        while n % b == 0:
            n = n // b
            e = e + 1
        if e > 0:
            fct.append((b, e))
        b, e = b + 1, 0
    if n > 1:
        fct.append((n, 1))
    return fct


def is_prime(n):
    if n == 1:
        return False

    for k in range(2, int(math.sqrt(n)) + 1):
        if n % k == 0:
            return False

    return True


def primes(n):
    is_prime = [True] * (n + 1)
    is_prime[0] = False
    is_prime[1] = False
    for i in range(2, int(n**0.5) + 1):
        if not is_prime[i]:
            continue
        for j in range(i * 2, n + 1, i):
            is_prime[j] = False
    return [i for i in range(n + 1) if is_prime[i]]

def modpow(a, n, mod):
    res = 1
    while n > 0:
        if n & 1:
            res = res * a % mod
        a = a * a % mod
        n >>= 1
    return res


def modinv(a, mod):
    return modpow(a, mod - 2, mod)


def cnk(a, b):
    MOD = 10**9+7
    ret = 1
    for i in range(b):
        ret *= (a-i)
        ret %= MOD
        ret = ret * modinv(i+1, MOD) % MOD
    return ret




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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,a,b=[int(s) for s in 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())

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:
X, A, B = map(int, input().split())

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 30, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

X,A,B = map(int,readline().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())
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 (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')
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('dangerous')
else:
  print('safe')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X, A, B = 6, 5, 1
if B <= A:
    print("delicious")
else:
    if (B-A) <= X:
        print("safe")
    if (B-A) > X:
        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 = 4, 3, 6
if A <= B:
    print("delicious")
elif (B-A) <= X:
    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")
if (B-A) <= X:
    print("safe")
if X < (B-A):
    print("dangerous")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


import numpy as np
import fractions as fra

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if x > (b - a) > 0:
  print("safe")
elif 0 > (b - a):
  print("delicious")
else:
  print("dengerous")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
X, A, B = [int(x) for x in 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 -a+b<=x:
    print("safe")
else:
    print("dangerous")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

now = b - a

if (now < 0):
   print('delicious')
elif (now > x):
   print('dengerous')
else:
   print('safe')

Submission status: Wrong Answer

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

now = b - a

if (now < 0):
   print('delicious')
elif (now >= 0 and now <= 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("dangerous")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

stdin = sys.stdin

ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split()))
rs = lambda: stdin.readline().rstrip()  # ignore trailing spaces

X, A, B = rl()
print('delicious' if A >= B else 'safe' if X >= B else 'dangerous')

Submission status: Wrong Answer

Solution code:
import sys

stdin = sys.stdin

ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split()))
rs = lambda: stdin.readline().rstrip()  # ignore trailing spaces

X, A, B = rl()
print('delicious' if A >= B else 'safe' if X >= A + B else 'dangerous')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if d <= 0:
  ans = 'delicious'
elif d <= a:
  ans = 'safe'
else:
  ans = 'dangerous'
print(ans)

Submission status: Wrong Answer

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

if d <= 0:
  ans = 'delicious'
elif d <= a:
  ans = 'safe'
else:
  ans = 'dangerous'

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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