#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 */
scalar_t__ ceil(double);
scalar_t__ floor(double);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *, int *, int *);
int main() {
  int x1;
  int v1;
  int x2;
  int v2;
  scanf("%d %d %d %d", &x1, &v1, &x2, &v2);
  if (v2 >= v1) {
    printf("NO\n");
  } else {
    double time = (x2 - x1) / (double)(v1 - v2);
    if (floor(time) == ceil(time)) {
      printf("YES\n");
    } else {
      printf("NO\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
call   1050 <scanf@plt>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     1188 <main+0x48>
lea    0xe8e(%rip),%rdi
call   1040 <printf@plt>
jmp    11ef <main+0xaf>
mov    -0x10(%rbp),%eax
sub    -0x8(%rbp),%eax
cvtsi2sd %eax,%xmm0
mov    -0xc(%rbp),%eax
sub    -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1060 <floor@plt>
mov    %rax,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1030 <ceil@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
cmp    %rcx,%rax
jne    11de <main+0x9e>
lea    0xe3c(%rip),%rdi
call   1040 <printf@plt>
jmp    11ea <main+0xaa>
lea    0xe27(%rip),%rdi
call   1040 <printf@plt>
jmp    11ef <main+0xaf>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xeb4(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1050 <scanf@plt>
mov    0x10(%rsp),%eax
sub    0x8(%rsp),%eax
jle    11b3 <main+0x73>
mov    0xc(%rsp),%ecx
sub    0x14(%rsp),%ecx
cvtsi2sd %ecx,%xmm0
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
call   1060 <floor@plt>
mov    %rax,%rbx
movsd  0x18(%rsp),%xmm0
call   1040 <ceil@plt>
cmp    %rax,%rbx
lea    0xe66(%rip),%rax
lea    0xe63(%rip),%rdi
cmove  %rax,%rdi
jmp    11ba <main+0x7a>
lea    0xe56(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

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