n=gets.to_i+1 r=10 while r<n do r*=10 end if r==n then puts "Yes" else puts "No" end