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

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