AtCoder Beginner Contest 065
A
Expired?
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
4 3 6
Output #1
safe
He ate the food three days after the "best-by" date. It was not delicious or harmful for him.
Input #2
6 5 1
Output #2
delicious
He ate the food by the "best-by" date. It was delicious for him.
Input #3
3 7 12
Output #3
dangerous
He ate the food five days after the "best-by" date. It was harmful for him.
题目信息
题号
abc065_a
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。