#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);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int n[2], d, v, i;
  double t[2], hum = 1;
  for (i = 0; i < 2; ++i) {
    scanf("%d %d %d", &n[i], &d, &v);
    t[i] = hum * d / v;
  }
  printf("%d\n", t[0] < t[1] ? n[0] : n[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jge    119f <main+0x7f>
movslq -0x18(%rbp),%rax
lea    -0xc(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xea5(%rip),%rdi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1040 <scanf@plt>
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
movslq -0x18(%rbp),%rax
movsd  %xmm0,-0x30(%rbp,%rax,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1143 <main+0x23>
movsd  -0x30(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11be <main+0x9e>
mov    -0xc(%rbp),%eax
mov    %eax,-0x3c(%rbp)
jmp    11c4 <main+0xa4>
mov    -0x8(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30,%rsp
lea    0xecc(%rip),%r13
lea    0x8(%rsp),%r14
lea    0x4(%rsp),%r15
mov    %rsp,%r12
mov    %r13,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1040 <scanf@plt>
lea    0xc(%rsp),%rbx
movss  0x4(%rsp),%xmm0
movaps %xmm0,0x10(%rsp)
movss  (%rsp),%xmm0
movaps %xmm0,0x20(%rsp)
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
movaps 0x10(%rsp),%xmm1
unpcklps %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm0
movss  (%rsp),%xmm1
movaps 0x20(%rsp),%xmm2
unpcklps %xmm1,%xmm2
cvtdq2pd %xmm2,%xmm1
divpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
ucomisd %xmm0,%xmm1
cmova  %r14,%rbx
mov    (%rbx),%esi
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [2 x double]
%7 = alloca double
store i32 0, i32* %1
store double 1.000000e+00, double* %7
store i32 0, i32* %5
br label %8
8: ; preds = %26, %0
%9 = load i32, i32* %5
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %29
11: ; preds = %8
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 %13
%15 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %14, i32* %3, i32* %4)
%16 = load double, double* %7
%17 = load i32, i32* %3
%18 = sitofp i32 %17 to double
%19 = fmul double %16, %18
%20 = load i32, i32* %4
%21 = sitofp i32 %20 to double
%22 = fdiv double %19, %21
%23 = load i32, i32* %5
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 %24
store double %22, double* %25
br label %26
26: ; preds = %11
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 1
store i32 %28, i32* %5
br label %8
29: ; preds = %8
%30 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 0
%31 = load double, double* %30
%32 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 1
%33 = load double, double* %32
%34 = fcmp olt double %31, %33
br i1 %34, label %35, label %38
35: ; preds = %29
%36 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 0
%37 = load i32, i32* %36
br label %41
38: ; preds = %29
%39 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 1
%40 = load i32, i32* %39
br label %41
41: ; preds = %38, %35
%42 = phi i32 [ %37, %35 ], [ %40, %38 ]
%43 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %42)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [2 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = bitcast [2 x i32]* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 0
%8 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %2, i32* %3)
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
%12 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %11, i32* %2, i32* %3)
%13 = load i32, i32* %2
%14 = insertelement <2 x i32> poison, i32 %9, i64 0
%15 = insertelement <2 x i32> %14, i32 %13, i64 1
%16 = sitofp <2 x i32> %15 to <2 x double>
%17 = load i32, i32* %3
%18 = insertelement <2 x i32> poison, i32 %10, i64 0
%19 = insertelement <2 x i32> %18, i32 %17, i64 1
%20 = sitofp <2 x i32> %19 to <2 x double>
%21 = fdiv <2 x double> %16, %20
%22 = extractelement <2 x double> %21, i64 0
%23 = extractelement <2 x double> %21, i64 1
%24 = fcmp olt double %22, %23
%25 = load i32, i32* %7
%26 = load i32, i32* %11
%27 = select i1 %24, i32 %25, i32 %26
%28 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %27)
ret i32 0
}