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

#include<stdio.h> 
int main(){ 
int n,i,j,a,b,c,flag; 
while(~scanf("%d",&n)){ 
a=2;b=3;c=5;flag=0; 
while(n>c){ 
c=a+b;
if(c==n){
flag=1;
} 
a=b; b=c; 
}if(flag||n==2||n==3||n==5){
printf("Lucky Day\n");
} 
else{
printf("Bad Day\n");
} 
} 
}