#include<iostream>
using namespace std;
int main()
{
    int i;
    cin>>i;
    if(i <= 3 &&i >= 0)
        cout<<"Good";
    else if(i > 3 && i < 10)
        cout<<"Danger";
    else if(i >= 10)
        cout<<"Danger++";
    return 0;
}