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

#include<stdio.h>
int main()
{
	int n;
	int a,b,k,s,c;
	while(scanf("%d",&n)!=EOF)
	{
		k=0;
		s=5;
		if(n==2||n==3)
		{
			k=1;
		}
		else
		{
			for(a=2,b=3;n;c=b,b=b+a,a=c)
			{
				s=a+b;
				if(n==s)
				{
					k=1;
					break;
				}
				else if(s>n)
				{
					break;
				}
			}
		}
		if(k==1)
		printf("Lucky Day\n");
		else
		printf("Bad Day\n");
	}
	return 0;
}