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: 2018212212034
In contest: 1284

#include<stdio.h>
#include<math.h>
#include<string.h>
int main(){
int fa[50];
fa[1]=1,fa[2]=2;
int i;
for(i=3;i<47;i++){
	fa[i]=fa[i-1]+fa[i-2];
}
int t,flag=0;
while(scanf("%d",&t)!=EOF){
	flag=0;
for(i=1;i<47;i++){
	if(t==fa[i]){
		flag=1;
		break;
	}
}
if(flag){
	printf("Lucky Day\n");
}
else
	printf("Bad Day\n");
}
}