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: 46ms
Memory: 1756kB
Author: 2018212212305
In contest: 1284

#include<stdio.h>
#include<cmath>
#include<string.h>
#include<iostream>
using namespace std;
int main(){
	char a[102];
	int l,n,flag=1;;
	int b[31];
	int T;
	for(int i=0;i<31;++i){
		if(i==0) b[i]=1;
		else if(i==1) b[i]=1;
		else b[i]=b[i-1]+b[i-2];
	}
	
	while(scanf("%d",&n)!=EOF){
		flag=1;
	for(int i=0;i<31;++i){
		if(n==b[i]) flag=0;
	}
	if(flag==1) printf("Bad Day\n");
	else if(flag==0) printf("Lucky Day\n");
	}
	
	
	return 0;
}