Start: Jul, 10, 2019 08:30:00
2019年度暑期短学期达标测试补考
End: Jul, 10, 2019 11:30:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 51ms
Memory: 1508kB
Author: 2018212212146
In contest: 1284

#include<stdio.h>

int f[100000];
void init()
{
    f[0]=2;
    f[1]=3;
    for(int i=2; i<80; i++)
        f[i]=f[i-1]+f[i-2];
}
int main()
{
    init();
    int n;
    while(scanf("%d",&n)!=EOF)
    {
        int flag=1;
        for(int i=0; i<80; i++)
            if(f[i]==n)
            {
                flag=0;
                break;
            }
        if(flag)puts("Bad Day");
        else puts("Lucky Day");
    }
}