#include <stdio.h>
int main()
{
int score;
while(scanf("%d",&score)!=EOF)
{
if(score>=10)
printf("Danger++");
if(score>=4&&score<=9)
printf("Danger");
if(score>=0&&score<=3)
printf("Good");
}
return 0;
}