﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArraySymmetry
{
    class ArraySymmetry
    {
        static void Main()
        {
            string[] arrayContent =
                Console.ReadLine()
                .Split(' ')
                .ToArray();
            int lamp = 0;
            for (int i = 0; i < arrayContent.Length / 2; i++)
            {
                string firstLetter = arrayContent[i];
                string secondLetter = arrayContent[arrayContent.Length - 1 - i];

                if (firstLetter != secondLetter)
                {
                    lamp = 1;
                }
            }

            if (lamp != 0)
            {
                Console.WriteLine("No");
            }
            else
            {
                Console.WriteLine("Yes");
            }
                       
        }
    }
}
