#include #include #include using namespace std; int main() { // mi(-)*n int j = 2; int i = 0; string s; cin >> s; while (1) { for (; s[j] == '-'; j++); j++; i++; if (s[j] == '\n') cout << i << endl; j += 2; } return 0; }