Easy
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
using System;
public class Program
{
public static void Main()
{
string word = Console.ReadLine();
int zCount = 0, oCount = 0;
for (int i = 0; i < word.Length; i++){
if(word[i] == 'z')
zCount++;
else
oCount++;
}
if(2 * zCount == oCount)
Console.WriteLine("Yes");
else
Console.WriteLine("No");
}
}