a = gets.chomp b = a.match(/\w+[A-Z]/) c = b.to_s.split("") d = c.sort e = d.join if e.squeeze! == nil puts "YES" else puts "NO" end