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

#include <stdio.h>
int FIB(int x){
	int n=1,m=1,t,sum;
	sum=n+m;
	while(sum<=x){
		if(sum==x) return 1;
		t=n;
		n=n+m;
		m=t;
		sum=n+m;
	}
	return 0;
}
int main(){
	int n;
	while(scanf("%d",&n)!=EOF){
		if(FIB(n)){
			printf("Lucky Day\n");
		}else{
			printf("Bad Day\n");
		}
	}
	
	
	return 0;
}