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