#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 */
float abs(float);
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);
  bool possibilityOfMeeting = false;
  if ((v1 > v2) && (v1 - v2 != 0)) {
    float t = (float)(x2 - x1) / ((float)(v1 - v2));
    float tAbs = abs(t);
    printf("t = %f && tAbs = %f\n", t, tAbs);
    if (t - tAbs == 0) {
      possibilityOfMeeting = true;
    } else {
      possibilityOfMeeting = false;
    }
  } else {
    possibilityOfMeeting = false;
  }
  if (possibilityOfMeeting) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
call   1050 <scanf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    11fd <main+0xcd>
mov    -0xc(%rbp),%eax
sub    -0x14(%rbp),%eax
cmp    $0x0,%eax
je     11fd <main+0xcd>
mov    -0x10(%rbp),%eax
sub    -0x8(%rbp),%eax
cvtsi2ss %eax,%xmm0
mov    -0xc(%rbp),%eax
sub    -0x14(%rbp),%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
call   1030 <abs@plt>
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe4a(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  -0x1c(%rbp),%xmm0
subss  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11f1 <main+0xc1>
jp     11f1 <main+0xc1>
movl   $0x1,-0x18(%rbp)
jmp    11f8 <main+0xc8>
movl   $0x0,-0x18(%rbp)
jmp    1204 <main+0xd4>
movl   $0x0,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1221 <main+0xf1>
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    122f <main+0xff>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xeb5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1060 <scanf@plt>
mov    0x10(%rsp),%eax
sub    0x8(%rsp),%eax
jle    11d0 <main+0x90>
je     11d0 <main+0x90>
mov    0xc(%rsp),%ecx
sub    0x14(%rsp),%ecx
cvtsi2ss %ecx,%xmm0
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,(%rsp)
call   1040 <abs@plt>
movaps %xmm0,%xmm1
movss  %xmm0,0x4(%rsp)
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
lea    0xe61(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movss  (%rsp),%xmm1
subss  0x4(%rsp),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jne    11d0 <main+0x90>
jp     11d0 <main+0x90>
lea    0xe56(%rip),%rdi
jmp    11d7 <main+0x97>
lea    0xe4a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%d %d %d %d\00"
@.str.1 = [21 x i8] c"t = %f && tAbs = %f\0A\00"
@.str.2 = [5 x i8] c"YES\0A\00"
@.str.3 = [4 x i8] c"NO\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 float
%8 = alloca float
store i32 0, i32* %1
%9 = 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)
store i32 0, i32* %6
%10 = load i32, i32* %3
%11 = load i32, i32* %5
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %42
13: ; preds = %0
%14 = load i32, i32* %3
%15 = load i32, i32* %5
%16 = sub nsw i32 %14, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %42
18: ; preds = %13
%19 = load i32, i32* %4
%20 = load i32, i32* %2
%21 = sub nsw i32 %19, %20
%22 = sitofp i32 %21 to float
%23 = load i32, i32* %3
%24 = load i32, i32* %5
%25 = sub nsw i32 %23, %24
%26 = sitofp i32 %25 to float
%27 = fdiv float %22, %26
store float %27, float* %7
%28 = load float, float* %7
%29 = call float @abs(float %28)
store float %29, float* %8
%30 = load float, float* %7
%31 = fpext float %30 to double
%32 = load float, float* %8
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %31, double %33)
%35 = load float, float* %7
%36 = load float, float* %8
%37 = fsub float %35, %36
%38 = fcmp oeq float %37, 0.000000e+00
br i1 %38, label %39, label %40
39: ; preds = %18
store i32 1, i32* %6
br label %41
40: ; preds = %18
store i32 0, i32* %6
br label %41
41: ; preds = %40, %39
br label %43
42: ; preds = %13, %0
store i32 0, i32* %6
br label %43
43: ; preds = %42, %41
%44 = load i32, i32* %6
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %50
48: ; preds = %43
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %50
50: ; preds = %48, %46
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%d %d %d %d\00"
@.str.1 = [21 x i8] c"t = %f && tAbs = %f\0A\00"
@str = [3 x i8] c"NO\00"
@str.4 = [4 x i8] c"YES\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* %2
%11 = load i32, i32* %4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %29
13: ; preds = %0
%14 = sub nsw i32 %10, %11
%15 = icmp eq i32 %14, 0
br i1 %15, label %29, label %16
16: ; preds = %13
%17 = load i32, i32* %3
%18 = load i32, i32* %1
%19 = sub nsw i32 %17, %18
%20 = sitofp i32 %19 to float
%21 = sitofp i32 %14 to float
%22 = fdiv float %20, %21
%23 = call float @abs(float %22)
%24 = fpext float %22 to double
%25 = fpext float %23 to double
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %24, double %25)
%27 = fsub float %22, %23
%28 = fcmp oeq float %27, 0.000000e+00
br i1 %28, label %30, label %29
29: ; preds = %16, %13, %0
br label %30
30: ; preds = %16, %29
%31 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0), %29 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @str.4, i64 0, i64 0), %16 ]
%32 = call i32 @puts(i8* dereferenceable(1) %31)
ret i32 0
}