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

#include<stdio.h>
int fei(int x);
int main()
{
	int n;
	int a[1000];
		int i;
		for (i=1;fei(i)<=100000;i++)
		{
			a[i]=fei(i);
		}	
	
	while(scanf("%d",&n)!=EOF)
	{
		int s=0;
		for (i=1;i<=999;i++)
		{
			if (a[i]>100000)
			break;
			if (n==a[i])
			{
				s++;
				break;
			}
		}
		if (s==1)
		printf("Lucky Day\n");
		else 
		printf("Bad Day\n");
	}
}
int fei(int x)
{
	if (x==1)
	return 2;
	else if (x==2)
	return 3;
	else
	return fei(x-1)+fei(x-2);
}