program sample
    implicit none
    character(100)::s,t
    integer(8) :: i,j,k,m,n
    integer(8)::a,b,c,d
    integer(8),allocatable::x(:),y(:)
  
    read(*,*) s
    
    if(s(1:1) .eq. s(3:3))then
        write(*,*)'Yes'
    else
        write(*,*)'No'
    endif
    
    stop
end program sample
  

