#include
#include
using namespace std;
int main()
{
string S;
cout << "BBEDITE TEXT: ", getline(cin,S);<br> S+=' ';
string Slovo = "";
for (int i = 0; i < S.length(); i++)
{
if (S[i] != ' ') Slovo+=S[i];
else
{
bool B = 1;
for(int j = 0; j+1 < Slovo.length(); j++)
{
for(int m = j+1; m < Slovo.length(); m++)
{
if (Slovo[j] == Slovo[m]) B = 0;
}
}
if (B) cout<<"\n" <<Slovo;<br> while (S[i] == ' ') i++;
Slovo=S[i];
}
}
return 0;
}