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

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