#include <iostream>
#include <string>
using namespace std;

int main(){
	string s;
	while(getline(cin, s)){
		for(size_t i = 1; i < s.size(); ++i){
			if(s[i - 1] == '-' && s[i] != ' '){ throw 0; }
		}
	}
}