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: 50ms
Memory: 1392kB
Author: 2018212212233
In contest: 1284

#include<stdio.h>
int main()
{
	int k,i,n,c=0;
	int f[100000];f[0]=1;f[1]=1;
	for(i=0;i<100000;++i)
	{
		f[i+2]=f[i]+f[i+1];
	}
	while(scanf("%d",&k)!=EOF)
	{
		c=0;
			for(i=2;i<100;++i)
		{
		     if(k==f[i])
		     {
		     	c++;
		     	break;
			 }
		}
		if(c!=1)
		printf("Bad Day\n");
		else
		printf("Lucky Day\n");		
	}
}