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

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