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

#include<stdio.h>
#include<math.h>
#include<string.h>
int main(){

	
int a[25];
int i,j,k;
a[0]=1;
a[1]=2;
for(j=2;j<25;j++)
	a[j]=a[j-1]+a[j-2];
	while(scanf("%d",&i)!=EOF){
		for(j=0,k=0;j<25;j++)
			{if(i==a[j])
				{printf("Lucky Day\n");k=1;
		break;}}
		if(k==0)
			printf("Bad Day\n");}


	





return 0;}