#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> s; vector cnt(26, 0); for(auto c:s) cnt[c-'a']++; bool f = false; ll ans = -1; for(int i=0;i<26;i++){ if(cnt[i]>=3) err(); if(cnt[i]==1&&f) err(); if(cnt[i]==1&&!f) f = true, ans = i; } if(!f) err(); char c = ans + 'a'; std::cout << c << '\n'; return 0; }