#include<stdio.h>
int main()
{
int i;
while(scanf("%d",&i)!=EOF)
{
switch (i)
{
case 0:
case 1:
case 2:
case 3:
printf("Good\n");
break;
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
printf("Danger\n");
break;
default:
printf("Danger++\n");
break;
}
}
return 0;
}