program prob1
    implicit none
    integer::i, j
    character(len=3)::x
    read(*,*) x
    if(x(1:1) .eq. x(3:3)) then
        write(*,'(a)') "Yes"
    else
        write(*,'(a)') "No"
    end if
    stop
end program