#!/bin/sh

while true;
do
        read line1

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

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

        if [ $dead -lt 0 ]; then
                echo "delicious"
        else
                if [ $X -gt $dead ]; then
                                echo "safe"
                        else
                                echo "dangerous"
                fi
        fi

done