#!/bin/ruby
puts !!gets.chomp.match(/575/) ? 'YES' : 'NO'