#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 *, int *, int *);
int main() {
  int a, b, c, x, y, z;
  scanf("%d%d%d%d%d%d", &a, &b, &c, &x, &y, &z);
  printf("%d\n", (x / a) * (y / b) * (z / c));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
lea    -0x18(%rbp),%r9
lea    -0x1c(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %eax,%esi
mov    -0x18(%rbp),%eax
cltd
idivl  -0xc(%rbp)
imul   %eax,%esi
mov    -0x1c(%rbp),%eax
cltd
idivl  -0x10(%rbp)
imul   %eax,%esi
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0xecc(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
call   1040 <scanf@plt>
mov    0x18(%rsp),%eax
cltd
idivl  0x24(%rsp)
mov    %eax,%esi
mov    0x14(%rsp),%eax
cltd
idivl  0x20(%rsp)
imul   %eax,%esi
mov    0x10(%rsp),%eax
cltd
idivl  0x1c(%rsp)
imul   %eax,%esi
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
@.str = [13 x i8] c"%d%d%d%d%d%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = call i32 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
%14 = load i32, i32* %4
%15 = load i32, i32* %1
%16 = sdiv i32 %14, %15
%17 = load i32, i32* %5
%18 = load i32, i32* %2
%19 = sdiv i32 %17, %18
%20 = mul nsw i32 %19, %16
%21 = load i32, i32* %6
%22 = load i32, i32* %3
%23 = sdiv i32 %21, %22
%24 = mul nsw i32 %20, %23
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %24)
ret i32 0
}