program answer
  implicit none
  integer(8) :: N, a, b, c
  read(*,*) N
  a=N/100
  b=(N-a*100)/10
  c=N-100*a-10*b
  if(a==c) then
     write(*,*) 'Yes'
  else
     write(*,*) 'No'
  end if

  stop
 end program answer