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

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

}