1 #include <bits/stdc++.h>
2 #define rep(i, a, b) for (int i = a; i <= b; i++)
3 #define drep(i, a, b) for (int i = a; i >= b; i--)
4 #define REP(i, a, b) for (int i = a; i < b; i++)
5 #define pb push_back
6 #define mp make_pair
7 #define clr(x) memset(x, 0, sizeof(x))
8 #define xx first
9 #define yy second
10 using namespace std;
11 typedef long long i64;
12 typedef pair<int, int> pii;
13 const int inf = ~0U >> 1;
14 const i64 INF = ~0ULL >> 1;
15 //***************************************
16
17 int main() {
18 int n;
19 scanf("%d\n", &n);
20 double l(0), ans(0);
21 char ch;
22 while (n--) {
23 ch = getchar();
24 if (ch == ‘o‘) ans += 2 * l + 1, l++;
25 else if (ch == ‘x‘) l = 0;
26 else ans += l + 0.5, l = (l + 1) / 2;
27 }
28 printf("%.4lf", ans);
29 return 0;
30 }