#include "bits/stdc++.h" using namespace std; using ll = long long; using ull = unsigned long long; typedef pair< long long, long long > P; typedef pair< long long, P > PP; typedef pair< P, P > PPP; const long long MOD = 1e9 + 7; const long long INF = 5e18; const double DINF = 5e14; const double eps = 1e-10; const int di[4] = { 1,0,-1,0 }, dj[4] = { 0,1,0,-1 }; #define ALL(x) (x).begin(),(x).end() #define ALLR(x) (x).rbegin(),(x).rend() #define pb push_back #define eb emplace_back #define fr first #define sc second string s; int cnt[30]; int main() { cin >> s; for (int i = 0;i < s.size();i++) { if (cnt[s[i] - 'A'] == 1) { cout << "NO" << endl; return 0; } cnt[s[i] - 'A']++; } cout << "YES" << endl; return 0; }