// A number with an odd number of digits and zero in the center is Cyclops number
using System;
public class Program
{
private static bool isCyclopsNumber(int n) {
if (n == 0) {
return true;
}
int m = n % 10;
int count = 0;
while (m != 0) {
count++;
n /= 10;
m = n % 10;
}
n /= 10;
m = n % 10;
while (m != 0) {
count--;
n /= 10;
m = n % 10;
}
return n == 0 && count == 0;
}
public static void Main(string[] args)
{
Console.WriteLine((isCyclopsNumber(209) ? "yes" : "no"));
Console.WriteLine((isCyclopsNumber(18037) ? "yes" : "no"));
Console.WriteLine((isCyclopsNumber(5604) ? "yes" : "no"));
}
}
/*
run:
yes
yes
no
*/