program main
    use,intrinsic :: iso_fortran_env
    implicit none
    character(3):: n
    
    read*, n
    
    if (n(1:1)==n(3:3)) then
        print'(a)', 'Yes'
    else
        print'(a)', 'No'
    end if
    
end program main