using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp131 { class Program { static void Main(string[] args) { string n = Console.ReadLine(); char[] h = new char[n.Length]; int o = 0; int x = 0; double a = 0; for(int i = 0; i < n.Length; i++) { //h[i] = n[i]; if (n[i] == 'o') { o += 1; } else { x += 1; } } // int[] m = new int[n.Length]; for (int i = 0; i < n.Length; i++) { a = (o / o + x)*100; Console.WriteLine(a); if (n[i] == 'o') { o -= 1; // n[i] = '-'; } else if (n[i] == 'x') { x -= 1; //n[i] = '-'; } } Console.ReadLine(); } } }