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: 41ms
Memory: 1120kB
Author: 2018212212179
In contest: 1284

#include<stdio.h>
int main(){
	int n;
	while(scanf("%d",&n)!=EOF){
	int f,f1,f2,i;
	f1=1,f2=2,f=f1+f2;
	for(i=3;i<n;i++){
		f1=f2;
		f2=f;
		f=f1+f2;
		if(f>=n)
			break;
	}
	if(f==n||n==2)
		printf("Lucky Day\n");
	else
		printf("Bad Day\n");
	}
	return 0;
}