#include <bits/stdc++.h>
using namespace std;
mt19937::result_type seed =
    chrono::steady_clock::now().time_since_epoch().count();
auto rng =
    std::bind(std::uniform_real_distribution<double>(0, 1), mt19937(seed));
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int count = 0;
  vector<int> v;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'v') {
      count++;
    } else {
      v.push_back(count);
      count = 0;
    }
  }
  if (count) {
    v.push_back(count);
  }
  long long sum = 0;
  for (int i = 0; i < v.size(); i++) {
    if (v[i] >= 2) {
      v[i]--;
    } else {
      v[i] = 0;
    }
    sum += v[i];
  }
  long long current = 0;
  long long ans = 0;
  for (int i = 0; i < v.size(); i++) {
    current += v[i];
    ans += (current * (sum - current));
  }
  cout << ans;
  return 0;
}
