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

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