#include using namespace std; int main(){ string s; cin >> s; map mp; for(char c: s){ if(mp[c] == 2){ printf("NO\n"); return 0; } mp[c]++; } printf("YES\n"); return 0; }