print((function (f) return f() and "YES" or "NO" end)(function () local h,s={},io.stdin:read("*l") for i=1,#s do if h[s:sub(i,i)]~=nil then return false end h[s:sub(i,i)]=0 end return true end))