using System;
using System.Threading;

class Referee
{
	public Referee ()
	{
	}
}

class LotsaRefs
{
	public Referee referee;
	public object ref1;
	public object ref2;
	public object ref3;
	public object ref4;
	public object ref5;
	public object ref6;
	public object ref7;
	public object ref8;
	public object ref9;
	public object ref10;
	public object ref11;
	public object ref12;
	public object ref13;
	public object ref14;
	public object ref15;
	public object ref16;
	public object ref17;
	public object ref18;
	public object ref19;
	public object ref20;
	public object ref21;
	public object ref22;
	public object ref23;
	public object ref24;
	public object ref25;
	public object ref26;
	public object ref27;
	public object ref28;
	public object ref29;
	public object ref30;
	public object ref31;
	public object ref32;
	public object ref33;
	public object ref34;
	public object ref35;
	public object ref36;
	public object ref37;
	public object ref38;
	public object ref39;
	public object ref40;
	public object ref41;
	public object ref42;
	public object ref43;
	public object ref44;
	public object ref45;
	public object ref46;
	public object ref47;
	public object ref48;
	public object ref49;
	public object ref50;
	public object ref51;
	public object ref52;
	public object ref53;
	public object ref54;
	public object ref55;
	public object ref56;
	public object ref57;
	public object ref58;
	public object ref59;
	public object ref60;
	public object ref61;
	public object ref62;
	public object ref63;
	public object ref64;
	public object ref65;
	public object ref66;
	public object ref67;
	public object ref68;
	public object ref69;
	public object ref70;
	public object ref71;
	public object ref72;
	public object ref73;
	public object ref74;
	public object ref75;
	public object ref76;
	public object ref77;
	public object ref78;
	public object ref79;
	public object ref80;
	public object ref81;
	public object ref82;
	public object ref83;
	public object ref84;
	public object ref85;
	public object ref86;
	public object ref87;
	public object ref88;
	public object ref89;
	public object ref90;
	public object ref91;
	public object ref92;
	public object ref93;
	public object ref94;
	public object ref95;
	public object ref96;
	public object ref97;
	public object ref98;
	public object ref99;
	public object ref100;
	public object ref101;
	public object ref102;
	public object ref103;
	public object ref104;
	public object ref105;
	public object ref106;
	public object ref107;
	public object ref108;
	public object ref109;
	public object ref110;
	public object ref111;
	public object ref112;
	public object ref113;
	public object ref114;
	public object ref115;
	public object ref116;
	public object ref117;
	public object ref118;
	public object ref119;
	public object ref120;
	public object ref121;
	public object ref122;
	public object ref123;
	public object ref124;
	public object ref125;
	public object ref126;
	public object ref127;
	public object ref128;
	public object ref129;
	public object ref130;
	public object ref131;
	public object ref132;
	public object ref133;
	public object ref134;
	public object ref135;
	public object ref136;
	public object ref137;
	public object ref138;
	public object ref139;
	public object ref140;
	public object ref141;
	public object ref142;
	public object ref143;
	public object ref144;
	public object ref145;
	public object ref146;
	public object ref147;
	public object ref148;
	public object ref149;
	public object ref150;
	public object ref151;
	public object ref152;
	public object ref153;
	public object ref154;
	public object ref155;
	public object ref156;
	public object ref157;
	public object ref158;
	public object ref159;
	public object ref160;
	public object ref161;
	public object ref162;
	public object ref163;
	public object ref164;
	public object ref165;
	public object ref166;
	public object ref167;
	public object ref168;
	public object ref169;
	public object ref170;
	public object ref171;
	public object ref172;
	public object ref173;
	public object ref174;
	public object ref175;
	public object ref176;
	public object ref177;
	public object ref178;
	public object ref179;
	public object ref180;
	public object ref181;
	public object ref182;
	public object ref183;
	public object ref184;
	public object ref185;
	public object ref186;
	public object ref187;
	public object ref188;
	public object ref189;
	public object ref190;
	public object ref191;
	public object ref192;
	public object ref193;
	public object ref194;
	public object ref195;
	public object ref196;
	public object ref197;
	public object ref198;
	public object ref199;
	public object ref200;
	public object ref201;
	public object ref202;
	public object ref203;
	public object ref204;
	public object ref205;
	public object ref206;
	public object ref207;
	public object ref208;
	public object ref209;
	public object ref210;
	public object ref211;
	public object ref212;
	public object ref213;
	public object ref214;
	public object ref215;
	public object ref216;
	public object ref217;
	public object ref218;
	public object ref219;
	public object ref220;
	public object ref221;
	public object ref222;
	public object ref223;
	public object ref224;
	public object ref225;
	public object ref226;
	public object ref227;
	public object ref228;
	public object ref229;
	public object ref230;
	public object ref231;
	public object ref232;
	public object ref233;
	public object ref234;
	public object ref235;
	public object ref236;
	public object ref237;
	public object ref238;
	public object ref239;
	public object ref240;
	public object ref241;
	public object ref242;
	public object ref243;
	public object ref244;
	public object ref245;
	public object ref246;
	public object ref247;
	public object ref248;
	public object ref249;
	public object ref250;
	public object ref251;
	public object ref252;
	public object ref253;
	public object ref254;
	public object ref255;
	public object ref256;
	public object ref257;
	public object ref258;
	public object ref259;
	public object ref260;
	public object ref261;
	public object ref262;
	public object ref263;
	public object ref264;
	public object ref265;
	public object ref266;
	public object ref267;
	public object ref268;
	public object ref269;
	public object ref270;
	public object ref271;
	public object ref272;
	public object ref273;
	public object ref274;
	public object ref275;
	public object ref276;
	public object ref277;
	public object ref278;
	public object ref279;
	public object ref280;
	public object ref281;
	public object ref282;
	public object ref283;
	public object ref284;
	public object ref285;
	public object ref286;
	public object ref287;
	public object ref288;
	public object ref289;
	public object ref290;
	public object ref291;
	public object ref292;
	public object ref293;
	public object ref294;
	public object ref295;
	public object ref296;
	public object ref297;
	public object ref298;
	public object ref299;
	public object ref300;
	public object ref301;
	public object ref302;
	public object ref303;
	public object ref304;
	public object ref305;
	public object ref306;
	public object ref307;
	public object ref308;
	public object ref309;
	public object ref310;
	public object ref311;
	public object ref312;
	public object ref313;
	public object ref314;
	public object ref315;
	public object ref316;
	public object ref317;
	public object ref318;
	public object ref319;
	public object ref320;
	public object ref321;
	public object ref322;
	public object ref323;
	public object ref324;
	public object ref325;
	public object ref326;
	public object ref327;
	public object ref328;
	public object ref329;
	public object ref330;
	public object ref331;
	public object ref332;
	public object ref333;
	public object ref334;
	public object ref335;
	public object ref336;
	public object ref337;
	public object ref338;
	public object ref339;
	public object ref340;
	public object ref341;
	public object ref342;
	public object ref343;
	public object ref344;
	public object ref345;
	public object ref346;
	public object ref347;
	public object ref348;
	public object ref349;
	public object ref350;
	public object ref351;
	public object ref352;
	public object ref353;
	public object ref354;
	public object ref355;
	public object ref356;
	public object ref357;
	public object ref358;
	public object ref359;
	public object ref360;
	public object ref361;
	public object ref362;
	public object ref363;
	public object ref364;
	public object ref365;
	public object ref366;
	public object ref367;
	public object ref368;
	public object ref369;
	public object ref370;
	public object ref371;
	public object ref372;
	public object ref373;
	public object ref374;
	public object ref375;
	public object ref376;
	public object ref377;
	public object ref378;
	public object ref379;
	public object ref380;
	public object ref381;
	public object ref382;
	public object ref383;
	public object ref384;
	public object ref385;
	public object ref386;
	public object ref387;
	public object ref388;
	public object ref389;
	public object ref390;
	public object ref391;
	public object ref392;
	public object ref393;
	public object ref394;
	public object ref395;
	public object ref396;
	public object ref397;
	public object ref398;
	public object ref399;
	public object ref400;
	public object ref401;
	public object ref402;
	public object ref403;
	public object ref404;
	public object ref405;
	public object ref406;
	public object ref407;
	public object ref408;
	public object ref409;
	public object ref410;
	public object ref411;
	public object ref412;
	public object ref413;
	public object ref414;
	public object ref415;
	public object ref416;
	public object ref417;
	public object ref418;
	public object ref419;
	public object ref420;
	public object ref421;
	public object ref422;
	public object ref423;
	public object ref424;
	public object ref425;
	public object ref426;
	public object ref427;
	public object ref428;
	public object ref429;
	public object ref430;
	public object ref431;
	public object ref432;
	public object ref433;
	public object ref434;
	public object ref435;
	public object ref436;
	public object ref437;
	public object ref438;
	public object ref439;
	public object ref440;
	public object ref441;
	public object ref442;
	public object ref443;
	public object ref444;
	public object ref445;
	public object ref446;
	public object ref447;
	public object ref448;
	public object ref449;
	public object ref450;
	public object ref451;
	public object ref452;
	public object ref453;
	public object ref454;
	public object ref455;
	public object ref456;
	public object ref457;
	public object ref458;
	public object ref459;
	public object ref460;
	public object ref461;
	public object ref462;
	public object ref463;
	public object ref464;
	public object ref465;
	public object ref466;
	public object ref467;
	public object ref468;
	public object ref469;
	public object ref470;
	public object ref471;
	public object ref472;
	public object ref473;
	public object ref474;
	public object ref475;
	public object ref476;
	public object ref477;
	public object ref478;
	public object ref479;
	public object ref480;
	public object ref481;
	public object ref482;
	public object ref483;
	public object ref484;
	public object ref485;
	public object ref486;
	public object ref487;
	public object ref488;
	public object ref489;
	public object ref490;
	public object ref491;
	public object ref492;
	public object ref493;
	public object ref494;
	public object ref495;
	public object ref496;
	public object ref497;
	public object ref498;
	public object ref499;
	public object ref500;
	public object ref501;
	public object ref502;
	public object ref503;
	public object ref504;
	public object ref505;
	public object ref506;
	public object ref507;
	public object ref508;
	public object ref509;
	public object ref510;
	public object ref511;
	public object ref512;
	public object ref513;
	public object ref514;
	public object ref515;
	public object ref516;
	public object ref517;
	public object ref518;
	public object ref519;
	public object ref520;
	public object ref521;
	public object ref522;
	public object ref523;
	public object ref524;
	public object ref525;
	public object ref526;
	public object ref527;
	public object ref528;
	public object ref529;
	public object ref530;
	public object ref531;
	public object ref532;
	public object ref533;
	public object ref534;
	public object ref535;
	public object ref536;
	public object ref537;
	public object ref538;
	public object ref539;
	public object ref540;
	public object ref541;
	public object ref542;
	public object ref543;
	public object ref544;
	public object ref545;
	public object ref546;
	public object ref547;
	public object ref548;
	public object ref549;
	public object ref550;
	public object ref551;
	public object ref552;
	public object ref553;
	public object ref554;
	public object ref555;
	public object ref556;
	public object ref557;
	public object ref558;
	public object ref559;
	public object ref560;
	public object ref561;
	public object ref562;
	public object ref563;
	public object ref564;
	public object ref565;
	public object ref566;
	public object ref567;
	public object ref568;
	public object ref569;
	public object ref570;
	public object ref571;
	public object ref572;
	public object ref573;
	public object ref574;
	public object ref575;
	public object ref576;
	public object ref577;
	public object ref578;
	public object ref579;
	public object ref580;
	public object ref581;
	public object ref582;
	public object ref583;
	public object ref584;
	public object ref585;
	public object ref586;
	public object ref587;
	public object ref588;
	public object ref589;
	public object ref590;
	public object ref591;
	public object ref592;
	public object ref593;
	public object ref594;
	public object ref595;
	public object ref596;
	public object ref597;
	public object ref598;
	public object ref599;
	public object ref600;
	public object ref601;
	public object ref602;
	public object ref603;
	public object ref604;
	public object ref605;
	public object ref606;
	public object ref607;
	public object ref608;
	public object ref609;
	public object ref610;
	public object ref611;
	public object ref612;
	public object ref613;
	public object ref614;
	public object ref615;
	public object ref616;
	public object ref617;
	public object ref618;
	public object ref619;
	public object ref620;
	public object ref621;
	public object ref622;
	public object ref623;
	public object ref624;
	public object ref625;
	public object ref626;
	public object ref627;
	public object ref628;
	public object ref629;
	public object ref630;
	public object ref631;
	public object ref632;
	public object ref633;
	public object ref634;
	public object ref635;
	public object ref636;
	public object ref637;
	public object ref638;
	public object ref639;
	public object ref640;
	public object ref641;
	public object ref642;
	public object ref643;
	public object ref644;
	public object ref645;
	public object ref646;
	public object ref647;
	public object ref648;
	public object ref649;
	public object ref650;
	public object ref651;
	public object ref652;
	public object ref653;
	public object ref654;
	public object ref655;
	public object ref656;
	public object ref657;
	public object ref658;
	public object ref659;
	public object ref660;
	public object ref661;
	public object ref662;
	public object ref663;
	public object ref664;
	public object ref665;
	public object ref666;
	public object ref667;
	public object ref668;
	public object ref669;
	public object ref670;
	public object ref671;
	public object ref672;
	public object ref673;
	public object ref674;
	public object ref675;
	public object ref676;
	public object ref677;
	public object ref678;
	public object ref679;
	public object ref680;
	public object ref681;
	public object ref682;
	public object ref683;
	public object ref684;
	public object ref685;
	public object ref686;
	public object ref687;
	public object ref688;
	public object ref689;
	public object ref690;
	public object ref691;
	public object ref692;
	public object ref693;
	public object ref694;
	public object ref695;
	public object ref696;
	public object ref697;
	public object ref698;
	public object ref699;
	public object ref700;
	public object ref701;
	public object ref702;
	public object ref703;
	public object ref704;
	public object ref705;
	public object ref706;
	public object ref707;
	public object ref708;
	public object ref709;
	public object ref710;
	public object ref711;
	public object ref712;
	public object ref713;
	public object ref714;
	public object ref715;
	public object ref716;
	public object ref717;
	public object ref718;
	public object ref719;
	public object ref720;
	public object ref721;
	public object ref722;
	public object ref723;
	public object ref724;
	public object ref725;
	public object ref726;
	public object ref727;
	public object ref728;
	public object ref729;
	public object ref730;
	public object ref731;
	public object ref732;
	public object ref733;
	public object ref734;
	public object ref735;
	public object ref736;
	public object ref737;
	public object ref738;
	public object ref739;
	public object ref740;
	public object ref741;
	public object ref742;
	public object ref743;
	public object ref744;
	public object ref745;
	public object ref746;
	public object ref747;
	public object ref748;
	public object ref749;
	public object ref750;
	public object ref751;
	public object ref752;
	public object ref753;
	public object ref754;
	public object ref755;
	public object ref756;
	public object ref757;
	public object ref758;
	public object ref759;
	public object ref760;
	public object ref761;
	public object ref762;
	public object ref763;
	public object ref764;
	public object ref765;
	public object ref766;
	public object ref767;
	public object ref768;
	public object ref769;
	public object ref770;
	public object ref771;
	public object ref772;
	public object ref773;
	public object ref774;
	public object ref775;
	public object ref776;
	public object ref777;
	public object ref778;
	public object ref779;
	public object ref780;
	public object ref781;
	public object ref782;
	public object ref783;
	public object ref784;
	public object ref785;
	public object ref786;
	public object ref787;
	public object ref788;
	public object ref789;
	public object ref790;
	public object ref791;
	public object ref792;
	public object ref793;
	public object ref794;
	public object ref795;
	public object ref796;
	public object ref797;
	public object ref798;
	public object ref799;
	public object ref800;
	public object ref801;
	public object ref802;
	public object ref803;
	public object ref804;
	public object ref805;
	public object ref806;
	public object ref807;
	public object ref808;
	public object ref809;
	public object ref810;
	public object ref811;
	public object ref812;
	public object ref813;
	public object ref814;
	public object ref815;
	public object ref816;
	public object ref817;
	public object ref818;
	public object ref819;
	public object ref820;
	public object ref821;
	public object ref822;
	public object ref823;
	public object ref824;
	public object ref825;
	public object ref826;
	public object ref827;
	public object ref828;
	public object ref829;
	public object ref830;
	public object ref831;
	public object ref832;
	public object ref833;
	public object ref834;
	public object ref835;
	public object ref836;
	public object ref837;
	public object ref838;
	public object ref839;
	public object ref840;
	public object ref841;
	public object ref842;
	public object ref843;
	public object ref844;
	public object ref845;
	public object ref846;
	public object ref847;
	public object ref848;
	public object ref849;
	public object ref850;
	public object ref851;
	public object ref852;
	public object ref853;
	public object ref854;
	public object ref855;
	public object ref856;
	public object ref857;
	public object ref858;
	public object ref859;
	public object ref860;
	public object ref861;
	public object ref862;
	public object ref863;
	public object ref864;
	public object ref865;
	public object ref866;
	public object ref867;
	public object ref868;
	public object ref869;
	public object ref870;
	public object ref871;
	public object ref872;
	public object ref873;
	public object ref874;
	public object ref875;
	public object ref876;
	public object ref877;
	public object ref878;
	public object ref879;
	public object ref880;
	public object ref881;
	public object ref882;
	public object ref883;
	public object ref884;
	public object ref885;
	public object ref886;
	public object ref887;
	public object ref888;
	public object ref889;
	public object ref890;
	public object ref891;
	public object ref892;
	public object ref893;
	public object ref894;
	public object ref895;
	public object ref896;
	public object ref897;
	public object ref898;
	public object ref899;
	public object ref900;
	public object ref901;
	public object ref902;
	public object ref903;
	public object ref904;
	public object ref905;
	public object ref906;
	public object ref907;
	public object ref908;
	public object ref909;
	public object ref910;
	public object ref911;
	public object ref912;
	public object ref913;
	public object ref914;
	public object ref915;
	public object ref916;
	public object ref917;
	public object ref918;
	public object ref919;
	public object ref920;
	public object ref921;
	public object ref922;
	public object ref923;
	public object ref924;
	public object ref925;
	public object ref926;
	public object ref927;
	public object ref928;
	public object ref929;
	public object ref930;
	public object ref931;
	public object ref932;
	public object ref933;
	public object ref934;
	public object ref935;
	public object ref936;
	public object ref937;
	public object ref938;
	public object ref939;
	public object ref940;
	public object ref941;
	public object ref942;
	public object ref943;
	public object ref944;
	public object ref945;
	public object ref946;
	public object ref947;
	public object ref948;
	public object ref949;
	public object ref950;
	public object ref951;
	public object ref952;
	public object ref953;
	public object ref954;
	public object ref955;
	public object ref956;
	public object ref957;
	public object ref958;
	public object ref959;
	public object ref960;
	public object ref961;
	public object ref962;
	public object ref963;
	public object ref964;
	public object ref965;
	public object ref966;
	public object ref967;
	public object ref968;
	public object ref969;
	public object ref970;
	public object ref971;
	public object ref972;
	public object ref973;
	public object ref974;
	public object ref975;
	public object ref976;
	public object ref977;
	public object ref978;
	public object ref979;
	public object ref980;
	public object ref981;
	public object ref982;
	public object ref983;
	public object ref984;
	public object ref985;
	public object ref986;
	public object ref987;
	public object ref988;
	public object ref989;
	public object ref990;
	public object ref991;
	public object ref992;
	public object ref993;
	public object ref994;
	public object ref995;
	public object ref996;
	public object ref997;
	public object ref998;
}

public class Test
{
	static LotsaRefs refs;

	public static int Main()
	{
		var t = new Thread (() =>
				{
					refs = new LotsaRefs();
					refs.referee = new Referee();
				});
		t.Start ();
		t.Join ();
		for (var i = 0; i < 100000000; ++i)
		{
			var o = new object();
		}
		if (refs.referee.GetType() != typeof(Referee))
		{
			Console.WriteLine ("wrong type: {0}", refs.referee.GetType());
			return 1;
		}
		Console.WriteLine ("all good");
		return 0;
	}
}
