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

#include<stdio.h>
#include<math.h>
#include<string.h>
int main(){
	int m,n,a,i,j,f[350];
	f[0]=1;f[1]=1;f[2]=2;
	while(~scanf("%d",&n)){
		a=1;
		for(j=3;j<=350;j++){
		f[j]=f[j-1]+f[j-2];
		}
		for(i=2;i<=350;i++){
		if(n==f[i]){
			a=0;
		}
	}

	    if(a==0)
		    printf("Lucky Day\n");
		if(a==1)
			printf("Bad Day\n");
	}
}