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: 55ms
Memory: 1836kB
Author: 2018212212171
In contest: 1284

#include <cstdio>
#include <iostream>
#include<cstring>
#include<string>
using namespace std;
long long int a[10001]={0,1};
int main()
{
	int n;
	for(int i=2;i<=110;i++)
		a[i]=a[i-1]+a[i-2];
	while(~scanf("%d",&n))
	{
		int flag=0;
		for(int i=0;i<=110;i++)
		{
			if(a[i]==n)
				flag=1;
		}
		if(flag)
			cout<<"Lucky Day\n";
		else
			cout<<"Bad Day\n";
	}
}