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

#include <stdio.h>
int main()
{
	int n;
	while(scanf("%d", &n)!=EOF){
		int i, j;
		int a1 = 2,a2 = 3;
		int a3;
		for(i=0; i<49; i++){
			
			if (n==a1||n==a2||n==a3){
				printf("Lucky Day\n");
				break;
			}else if(i==48&&(n!=a1||n!=a2||n!=a3)){
				printf("Bad Day\n");
			}a3 = a1 + a2;
			a1 = a2;
			a2 = a3;
		}
	}
	
    return 0;
}