using System; namespace No346{ public class Program{ public static void Main(string[] args){ const string cww = "cww"; var str = Console.ReadLine(); var dp = new long[cww.Length + 1]; dp[0] = 1; foreach(var c in str){ for(var i = cww.Length; i > 0; i--) { if(c == cww[i - 1]){ dp[i] += dp[i - 1]; } } } Console.WriteLine(dp[cww.Length]); } } }