program prob
    implicit none
    character(3) :: s
    read(*,*) s
    if(s(1:1) == s(3:3))then
        write(*,'(a)') 'Yes'
    else
        write(*,'(a)') 'No'
    end if
    stop
contains
end program prob