using System;
public class Program
{
private static bool OnlyOneZero(string str) {
int count = 0;
foreach (char ch in str.ToCharArray()) {
if (ch == '0') {
count++;
}
}
return count == 1;
}
public static void Main(string[] args)
{
const string s1 = "294098";
Console.WriteLine(OnlyOneZero(s1) ? "yes" : "no");
const string s2 = "47034099";
Console.WriteLine(OnlyOneZero(s2) ? "yes" : "no");
}
}
/*
run:
yes
no
*/