#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 scanf(char *, int *, int *, int *);
int main() {
  int P, H, O;
  while (scanf("%d %d %d", &P, &H, &O) == 3) {
    if (O > P)
      O = O - P;
    else {
      printf("Hunters win!\n");
      continue;
    }
    if (H - O > 0) {
      printf("Hunters win!\n");
    } else
      printf("Props win!\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11ac <main+0x8c>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    116a <main+0x4a>
mov    -0x10(%rbp),%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    117b <main+0x5b>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
mov    -0xc(%rbp),%eax
sub    -0x10(%rbp),%eax
cmp    $0x0,%eax
jle    119b <main+0x7b>
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
jmp    11a7 <main+0x87>
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xecb(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11ba <main+0x9a>
lea    0xebf(%rip),%rbx
lea    0xead(%rip),%rbp
lea    0xe9d(%rip),%r14
lea    0x14(%rsp),%r15
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%r13
jmp    119b <main+0x7b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
call   1040 <scanf@plt>
cmp    $0x3,%eax
jne    11ba <main+0x9a>
mov    0xc(%rsp),%eax
mov    %rbx,%rdi
sub    0x14(%rsp),%eax
jle    1180 <main+0x60>
mov    %eax,0xc(%rsp)
mov    %rbx,%rdi
cmp    %eax,0x10(%rsp)
jg     1180 <main+0x60>
mov    %rbp,%rdi
jmp    1180 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [14 x i8] c"Hunters win!\0A\00"
@.str.2 = [12 x i8] c"Props win!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
br label %5
5: ; preds = %27, %16, %0
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%7 = icmp eq i32 %6, 3
br i1 %7, label %8, label %28
8: ; preds = %5
%9 = load i32, i32* %4
%10 = load i32, i32* %2
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load i32, i32* %4
%14 = load i32, i32* %2
%15 = sub nsw i32 %13, %14
store i32 %15, i32* %4
br label %18
16: ; preds = %8
%17 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %5
18: ; preds = %12
%19 = load i32, i32* %3
%20 = load i32, i32* %4
%21 = sub nsw i32 %19, %20
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %27
25: ; preds = %18
%26 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %27
27: ; preds = %25, %23
br label %5
28: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@str.3 = [11 x i8] c"Props win!\00"
@str.4 = [13 x i8] c"Hunters win!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %23
9: ; preds = %0, %18
%10 = load i32, i32* %3
%11 = load i32, i32* %1
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = sub nsw i32 %10, %11
store i32 %14, i32* %3
%15 = load i32, i32* %2
%16 = icmp sgt i32 %15, %14
%17 = select i1 %16, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.3, i64 0, i64 0)
br label %18
18: ; preds = %13, %9
%19 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.4, i64 0, i64 0), %9 ], [ %17, %13 ]
%20 = call i32 @puts(i8* dereferenceable(1) %19)
%21 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%22 = icmp eq i32 %21, 3
br i1 %22, label %9, label %23
23: ; preds = %18, %0
ret i32 0
}