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: 121ms
Memory: 1120kB
Author: 2017210904042
In contest: 1284

#include <stdio.h>
int main()
{
	int fab[10000];
	fab[0] = 1;
	fab[1] = 1;
	int i;
	for(i=2;i<=1000;i++)
	{
		fab[i] = fab[i-1] + fab[i-2];
	}
	int j;
	int m;

	while(scanf("%d",&m)!=EOF)
	{
		int flag = 0;
	for(j=0;j<1000;j++)
	{
		if(m==fab[j])
		{
			flag = 1;
			break;
		}
	}
	if(flag==1)
	{
		printf("Lucky Day\n");
	}
	else
	{
		printf("Bad Day\n");
	}
	}
}