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: 1756kB
Author: 2018212212048
In contest: 1284

#include<stdio.h>
#include<string.h>
#include<iostream>
#include<algorithm>
using namespace std;
int fib[23];
void init(){
	fib[0]=2;
	fib[1]=3;
	for(int i=2;i<23;++i){
		fib[i]=fib[i-1]+fib[i-2];
		//cout<<i<<":"<<fib[i]<<endl;
	}
	
}
int main(){
//	memset(a,0,sizeof a);
	init();
	int t;
	while(scanf("%d",&t)!=EOF){
		for(int i=0;i<23;++i){
			if(t==fib[i]){
				printf("Lucky Day\n");
				goto aa;
			}
		}
		printf("Bad Day\n");
		aa:;
	}
}