#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main() {
vector<string> v = {"quick-brown-fox", "jumps-over", "the-lazy-dog"};
int count = accumulate(v.begin(), v.end(), 0, [](int p, string s) {
return p + count_if(s.begin(), s.end(), [](char c) {return c != '-';});
});
cout << count << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl2ZWN0b3I8c3RyaW5nPiB2ID0geyJxdWljay1icm93bi1mb3giLCAianVtcHMtb3ZlciIsICJ0aGUtbGF6eS1kb2cifTsKCWludCBjb3VudCA9IGFjY3VtdWxhdGUodi5iZWdpbigpLCB2LmVuZCgpLCAwLCBbXShpbnQgcCwgc3RyaW5nIHMpIHsKCQlyZXR1cm4gcCArIGNvdW50X2lmKHMuYmVnaW4oKSwgcy5lbmQoKSwgW10oY2hhciBjKSB7cmV0dXJuIGMgIT0gJy0nO30pOwogICAgfSk7Cgljb3V0IDw8IGNvdW50IDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==