str = gets.chomp puts str[0] == str[1] ? "Yes" : "No"