#!/bin/sh

while true;
do
        read line1

        if [ -z "$line1" ]; then
                break
        fi

        # X A B
        # A - B >=0 delicious
        # A+X >= B safe
        # X >= B-A
        # $dead + X >= 0

        X=`echo $line1 | cut -d" " -f 1`
        yummy=`echo $line1 | awk '{print $2-$3}'`
        dead=`echo $line1 | awk '{print $2-$3+$1}'`

        if [ $yummy -ge 0 ]; then
                echo "delicious"
        else
                if [ $dead -ge 0 ]; then
                                echo "safe"
                        else
                                echo "dangerous"
                fi
        fi

done