using System;
public class Program
{
private static int SoLuongUocSoChan(int n)
int Dem = 0;
for(int i=1; i<n;i++)
if(n%i==0 && i%2==0)
Dem++;
}
return Dem;
public static void Main()
Console.WriteLine("Nhap N: ");
int n = int.Parse(Console.ReadLine());
int D = SoLuongUocSoChan(n);
Console.WriteLine("So luong uoc so chan cua {n} la: " + D);