#include<iostream>
using namespace std;

int main() {
    string s; cin >> s;
    int win = 15 - s.size();
    for(char c: s) {
        if (c == 'o') win++;
    }
    cout << (win < 8 ? "NO" : "YES") << endl;
}