#include #include #include #include using namespace std; int main() { string text; getline(cin, text); for (int i = 0; i < text.size(); ++i) { if (text[i] == '-'||text[i] == '.') { text.erase(i, 1); } else { if (i