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: 88ms
Memory: 6380kB
Author: 2018212212122
In contest: 1284

#include <cstdio>
#include <iostream>
#include<algorithm>
#include<map>
using namespace std;
int n,m,i,j,k;
int f[114];
map<int,int>ff;
int main()
{
	f[0]=f[1]=1;
	ff[1]=1;
	for(i=2;i<=100;++i)
	{
		f[i]=f[i-1]+f[i-2];
		ff[f[i]]=1;
	}
	while(~scanf("%d",&n)){
		if(ff[n])
			puts("Lucky Day");
		else
			puts("Bad Day");
	}
	return 0;
}