Problem:
Score : 100 points

Problem Statement

You are given three integers A, B and C.

Determine if there exists an equilateral triangle whose sides have lengths A, B and C.

Constraints

All values in input are integers.

1 \leq A,B,C \leq 100

Input

Input is given from Standard Input in the following format:

A B C

Output

If there exists an equilateral triangle whose sides have lengths A, B and C, print Yes; otherwise, print No.

Sample Input 1

2 2 2

Sample Output 1

Yes

There exists an equilateral triangle whose sides have lengths 2, 2 and 2.

Sample Input 2

3 4 5

Sample Output 2

No

There is no equilateral triangle whose sides have lengths 3, 4 and 5.

Solution in JavaScript (node.js v5.12) (judge verdict: Wrong Answer)

function isTriangle(input){
  console.log("Please input the numbers");
  const input3 = input.split(' ');
  console.log(input3);
  A = parseInt(input3[0].replace(/\r?\n/g,''));
  B = parseInt(input3[1].replace(/\r?\n/g,''));
  C = parseInt(input3[2].replace(/\r?\n/g,''));
  console.log(A);
  console.log(B);
  console.log(C);
  if (A < 1 || 100 < A) {
    console.log("A is out of range");
    return;
  }
  if (B < 1 || 100 < B) {
    console.log("B is out of range");
    return;
  }
  if (C < 1 || 100 < C) {
    console.log("C is out of range");
    return;;
  }
  if (A==B && B==C && C==A){
    console.log("YES");
  }else{
    console.log("NO");
  }
}

isTriangle(require("fs").readFileSync("/dev/stdin", "utf8"));