#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, long long *, long long *, long long *);
int main(void) {
  long long int j, s, m, c = 0;
  scanf("%lld%lld%lld", &j, &s, &m);
  m = m - j;
  m = m / s;
  if (m % 2 == 0)
    printf("Lucky Chef\n");
  else
    printf("Unlucky Chef\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x28(%rbp)
lea    0xec2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x20(%rbp),%rax
sub    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cqto
idivq  -0x18(%rbp)
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1192 <main+0x72>
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
jmp    119e <main+0x7e>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
call   1040 <scanf@plt>
mov    (%rsp),%rax
sub    0x10(%rsp),%rax
mov    0x8(%rsp),%rcx
mov    %rax,%rdx
or     %rcx,%rdx
shr    $0x20,%rdx
je     115e <main+0x3e>
cqto
idiv   %rcx
jmp    1162 <main+0x42>
xor    %edx,%edx
div    %ecx
mov    %rax,(%rsp)
test   $0x1,%al
lea    0xeab(%rip),%rax
lea    0xe97(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%lld%lld%lld\00"
@.str.1 = [12 x i8] c"Lucky Chef\0A\00"
@.str.2 = [14 x i8] c"Unlucky Chef\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i32 0, i32* %1
store i64 0, i64* %5
%6 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64* %2, i64* %3, i64* %4)
%7 = load i64, i64* %4
%8 = load i64, i64* %2
%9 = sub nsw i64 %7, %8
store i64 %9, i64* %4
%10 = load i64, i64* %4
%11 = load i64, i64* %3
%12 = sdiv i64 %10, %11
store i64 %12, i64* %4
%13 = load i64, i64* %4
%14 = srem i64 %13, 2
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %20
18: ; preds = %0
%19 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %16
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"%lld%lld%lld\00"
@str = [13 x i8] c"Unlucky Chef\00"
@str.3 = [11 x i8] c"Lucky Chef\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = bitcast i64* %1 to i8*
%5 = bitcast i64* %2 to i8*
%6 = bitcast i64* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64* %1, i64* %2, i64* %3)
%8 = load i64, i64* %3
%9 = load i64, i64* %1
%10 = sub nsw i64 %8, %9
%11 = load i64, i64* %2
%12 = sdiv i64 %10, %11
store i64 %12, i64* %3
%13 = and i64 %12, 1
%14 = icmp eq i64 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0)
%16 = call i32 @puts(i8* dereferenceable(1) %15)
ret i32 0
}