using System.Collections.Generic;
static void Children(List<int> Parent, int n)
Console.WriteLine("Родител - брой деца\n");
for (int i = 1; i <= n; i++)
for (int j = 1; j <= n; j++) if (Parent[j] == i) br++;
Console.WriteLine(i+" - "+br+"\n");
public static void Main()
n = int.Parse(Console.ReadLine());
List<int> Parents = new List<int>(n + 1);
for (m = 0; m <= n; m++) Parents.Add(0);
Console.WriteLine("ребро " + m);
u = int.Parse(Console.ReadLine());
v = int.Parse(Console.ReadLine());
Console.WriteLine("\nСписък на родителите\nребро: родител ");
{ Console.WriteLine("{0}: {1}", m, Parents[m]); }
Console.WriteLine("\nОпределяне броя на децата на всеки връх" );