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

#include<stdio.h>
int main(void){
	int a;
	while(scanf("%d",&a)!=EOF){
		int b[200],i;
		b[0]=1;
		b[1]=2;
		if(a==2){
			printf("Lucky Day\n");
		}
		else{
			for(i=2;i<200;i++){
				b[i]=b[i-1]+b[i-2];
				if(a==b[i]){
					printf("Lucky Day\n");
					break;
				}
			}
			if(i==200){
				printf("Bad Day\n");
			}
		}
	}
	return 0;
}