def main()
    num_array = gets.split.map(&:to_i)
    (num_array.size-1).times do |index|
        if(num_array[index] >= num_array[index+1])
            return "No"
        end
    end
    return "Yes"
end

puts(main)
