#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;
}