open Printf
open Scanf

let () =
  let x, a, b = scanf "%d %d %d\n" (fun x y z -> (x, y, z)) in
  let e = b - a in
  (if e <= 0 then "delicious" else
    if e <= x then "safe" else "dangerous") |> printf "%s\n"
