n = gets.split("") m = gets.split("") puts "YES "if n - m == nil puts "NO "if n - m != nil