import Control.Monad

main = do 
    a <- map read . words <$> getLine :: IO [Int]
    let tmp = head a  
    -- ass <- replicateM n (map read . words <$> getLine) :: IO [[Int]]
    if (length $ filter (==tmp) a) == 3 then  putStrLn "Yes" else putStrLn "No"