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

#include<stdio.h>
#include<math.h>
#include<string.h>

int main(){
    int a[1000],i,b,n,t;
    a[0]=1;a[1]=1;
    for(i=2;i<1000;i++){
    	a[i]=a[i-2]+a[i-1];
	}
	while(scanf("%d",&n)!=EOF){
		for(i=0;i<1000;i++){
			if(n==a[i]){
				printf("Lucky Day\n");
				break;
			}
			if(n<a[i]){
				printf("Bad Day\n");
				break;
			}
		}
	}
    
}