# 入力された値を文字列で受け取る input = gets.chomp if input.include? "575" puts "YES" else puts "NO" end