class X
{
private static int i;
public int z;
public X()
{
i++;
z = i;
}
}
class Program
{
private static X x1;
private static X x2 = new X();
static Program()
{
x1 = new X();
}
static void Main(string[] args)
{
Console.WriteLine(x1.z);
Console.WriteLine(x2.z);
}
}