#include <bits/stdc++.h>   using namespace std;   int main() {     string s;     cin >> s;     long long res = 1;     long long mdl = 1000000000 + 7;     long long s1 = s.size();     vector<long long> fibo(s1 + 1);     fibo[0] = 1;     fibo[1] = 1;     for (long long i = 0; i < s1; i++) {       if (s[i] ==  m  || s[i] ==  w ) {         cout <<  0 ;         return 0;       }     }     for (long long j = 1; j < s1; j++) {       long long z = 1;       while ((j < s1) && ((s[j] == s[j - 1] && s[j] ==  u ) ||                           (s[j] == s[j - 1] && s[j] ==  n ))) {         z++;         j++;       }       long long i = 2;       while (i <= z) {         fibo[i] = (fibo[i - 1] + fibo[i - 2]) % mdl;         i++;       }       res = (res * fibo[z]) % mdl;     }     cout << res;     return 0;   }   