s = io.read() n = string.len(s) t = {} found = false for i = 1, n do a = string.sub(s, i, i) if(t[a] ~= nil) then found = true break else t[a] = true end end if(found) then print("NO") else print("YES") end