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 Kotlin (1.0.0) (judge verdict: Accepted)

private fun readInts() = readLine()!!.split(" ").map { it.toInt() }
private fun readLongs() = readLine()!!.split(" ").map { it.toLong() }

private fun gcd(a: Long, b: Long): Long = when {
    a < b -> gcd(b, a)
    b == 0L -> a
    else -> gcd(b, a % b)
}

private fun lcm(a: Long, b: Long) = a / gcd(a, b) * b
private fun gcd(a: Int, b: Int) = gcd(a.toLong(), b.toLong()).toInt()
private fun lcm(a: Int, b: Int) = lcm(a.toLong(), b.toLong()).toInt()

fun main(args: Array<String>) {
    val (A, B, C) = readInts()
    println(if (setOf(A, B, C).size == 1) "Yes" else "No")
}