#include <iostream>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim){
    vector<string> res;
    string temp = "";
    for(char c: s){
        if(c != delim) temp.push_back(c);
        else{
            res.push_back(temp);
            temp = "";
        }
    }
    if(temp.size()) res.push_back(temp);
    return res;
}

int main(){
    string s; getline(cin,s);
    vector<string> res = split(s,'-');
    for(auto st: res){
        cout << st << "\n";
    }

    return 0;
}
