#K84082. Can Form Equation?
Can Form Equation?
Can Form Equation?
You are given three integers \(a\), \(b\), and \(c\). Your task is to determine whether any of the following equations holds true:
\(a + b = c\), \(a - b = c\), \(b - a = c\), or \(a \times b = c\).
If at least one of these equations is satisfied, print Yes
; otherwise, print No
.
inputFormat
The input consists of a single line with three space-separated integers \(a\), \(b\), and \(c\).
outputFormat
Output a single line which contains either Yes
or No
depending on whether a valid equation can be formed.
2 3 5
Yes