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

#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
	int n,f1=1,f2=1,f=2;
	while(scanf("%d",&n)!=EOF)
	{
		f1=1;
		f2=1;
		f=2;
		if(n==2)
		{
			printf("Lucky Day\n");
		}
		else{
		f=2;
		while(f<n)
		{
			f1=f2;
			f2=f;
			f=f1+f2;
			if(f==n)
			{
				printf("Lucky Day\n");
				break;
			}
			else if(f>n)
			{
				printf("Bad Day\n");
				break;
			}
		}
	}
	}
}