2021-08-02 11:52:39 +00:00
|
|
|
#include <bits/stdc++.h>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
string s;
|
2021-08-06 10:28:57 +00:00
|
|
|
map<char, int> m;
|
|
|
|
queue<char> q;
|
2021-08-02 11:52:39 +00:00
|
|
|
cin >> s;
|
2021-08-06 10:28:57 +00:00
|
|
|
for (char i : s) {
|
|
|
|
m[i]++;
|
|
|
|
q.push(i);
|
2021-08-02 11:52:39 +00:00
|
|
|
}
|
2021-08-06 10:28:57 +00:00
|
|
|
while (!q.empty()) {
|
|
|
|
if (m[q.front()] == 1) {
|
|
|
|
cout << q.front() << endl;
|
|
|
|
exit(0);
|
2021-08-02 11:52:39 +00:00
|
|
|
}
|
2021-08-06 10:28:57 +00:00
|
|
|
q.pop();
|
2021-08-02 11:52:39 +00:00
|
|
|
}
|
2021-08-06 10:28:57 +00:00
|
|
|
cout << "no" << endl;
|
2021-08-02 11:52:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|