str = gets.chomp r = gets.chomp str.chars do |c| if !r.include?(c) print "NO" return end end puts "YES"