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