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

#include<iostream>
using namespace std;

int fibo(int n){
	int a=1,b=1,c,i;
	for(i=0;i<n;++i){
		c=a+b;
		a=b;
		b=c;
		if(c==n){
			return 1;
		}
		if(c>n){
			return 0;
		}
	}
}

int main(){
	int n;
	while(scanf("%d",&n)!=EOF){
		if(fibo(n)){
			
			printf("Lucky Day\n");
		}else{
			printf("Bad Day\n");
		}
	}
	return 0;
}