program tris;
uses sysUtils, DateUtils;

(* procédure affichTab
 *  description : Affichage d'un tableau
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à afficher
 *  n : taille du tableau
 *  PostCondition
 *  Affiche le tableau trié/à trier à l'écran
 *)

procedure affichTab(T : array of integer ; n : integer);
var
   i :  integer;
begin
   for i := 0 to n-2 do
      write(T[i],' | ');
   writeln(T[n-1]);
end;

// TODO : fonction echange qui échange, dans un tableau T, deux valeurs aux positions i et j

(* procédure echange
 *  description : Echange 2 valeurs dans un tableau
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau contenant les valeurs
 *  i : position de la valeur n°1
 *  j : position de la valeur n°2
 *  PostCondition
 *  T : tableau avec les valeurs échangées
 *)

procedure echange(var T	: array of integer ; i, j : integer);
var
   tmp :  integer;
begin 
   tmp := T[i];
   T[i] := T[j];
   T[j] := tmp;
end;

// TODO : Procédures de tri à coder

(* procédure TriSelection
 *  description : Tri d'un tableau par sélection
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriSelection(var T : array of integer ; n : integer ; boolTps : boolean);
var
   i, j, posmin	: integer;
begin
   for i := 0 to n-1 do
   begin
      posmin := i;
      for j := i to n-1 do
	 if T[j] < T[posmin] then
	    posmin := j;
      if posmin <> i then
	 echange(T,posmin,i);
      if not boolTps then
	 affichTab(T,n);
   end;
end; { TriSelection }

(* procédure TriBulle
 *  description : Tri à bulle d'un tableau
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriBulle(var T : array of integer ; n : integer ; boolTps : boolean);
var
   disorder : boolean;
   i	    : integer;
begin
   disorder := TRUE;
   while disorder do
   begin
      disorder := FALSE;
      for i := 0 to n-2 do
	 if T[i] > T[i+1] then
	 begin
	    disorder := TRUE;
	    echange(T,i,i+1);
	 end;
      if not boolTps then
	 affichTab(T,n);
   end;
end; { TriBulle }

(* procédure TriInsertion
 *  description : Tri d'un tableau par insertion
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriInsertion(var T : array of integer ; n : integer ; boolTps : boolean);
var
   i, j	:  integer;
begin
   for i := 1 to n-1 do
   begin
      j := i;
      while (j > 0) and (T[j] < T[j-1]) do
      begin
	 echange(T,j,j-1);
	 j := j-1;
      end;
      if not boolTps then
	 affichTab(T,n);
   end;
end; { TriInsertion }

(* procédure TriBicolore
 *  description : Tri d'un tableau "bicolore" (à 2 valeurs différentes)
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriBicolore(var T : array of integer ; n : integer ; boolTps : boolean);
var
   i, j	:  integer;
begin
   i := 0;
   j := n-1;
   while i < j do
   begin
      if T[i] = 42 then
      begin
	 echange(T,i,j);
	 j := j-1;
      end
      else i := i+1;
      if not boolTps then
	 affichTab(T,n);
   end;
end; { TriBicolore }

(* procédure partition
 *  description : Partition d'un sous-tableau (pour le tri rapide)
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier (contenant le sous-tableau à partitionner)
 *  debut, fin : définissent le sous-tableau : debut est la 1ère valeur du sous-tableau, fin est la dernière
 *  PostCondition
 *  T : tableau avec sous-tableau partitionné
 *)

function partition(var T : array of integer ; debut, fin : integer):integer;
var
   i, j, pivot	 : integer;
begin
   pivot := T[debut];
   i := debut;
   j := fin+1;
   repeat
      repeat
	 i := i+1;
      until (T[i] >= pivot) or (i = fin);
      repeat
	 j := j-1;
      until T[j] <= pivot;
      if i < j then
	 echange(T,i,j);
   until i >= j;
   T[debut] := T[j];
   T[j] := pivot;
   partition := j;
end; { partition }

(* procédure TriRapideProcess
 *  description : Tri rapide d'un tableau
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  debut, fin : définissent les positions des valeurs délimittant les sous-tableaux
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriRapideProcess(var T : array of integer ; debut, fin, n : integer ; boolTps : boolean);
var
   pivot :  integer;
begin
   if debut < fin then
   begin
      pivot := partition(T,debut,fin);
      if not boolTps then affichTab(T,n);
      TriRapideProcess(T,debut,pivot-1,n,boolTps);
      TriRapideProcess(T,pivot+1,fin,n,boolTps);
   end;
end; { TriRapideProcess }

(* procédure TriRapide
 *  description : Tri rapide d'un tableau
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriRapide(var T : array of integer ; n : integer ; boolTps : boolean);
begin
   TriRapideProcess(T,0,n-1,n,boolTps);
end; { TriRapide }

(* procédure fusion
 *  description : Fusion de sous-tableaux (dans le tri fusion)
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau contenant les sous tableaux à fusionner
 *  debut, milieu, fin : délimitent les sous tableaux à fusionner. debut = début du 1er sous tableau, milieu = fin du 1er, début du 2ème, fin = fin du 2ème
 *  PostCondition
 *  T : tableau avec sous tableaux fusionnés
 *)

procedure fusion(var T : array of integer ; debut, milieu, fin : integer);
var
   i, i1, i2, max : integer;
   tmp : array of integer;
begin
   setLength(tmp,fin-debut);
   i := 0;
   i1 := debut;
   i2 := milieu+1;
   while (i1 <= milieu) and (i2 <= fin) do
   begin
      if T[i1] < T[i2] then
      begin
	 tmp[i] := T[i1];
	 i1 := i1 + 1;
      end
      else
      begin
	 tmp[i] := T[i2];
	 i2 := i2 + 1;
      end;
      i := i+1;
   end;
   while i1 <= milieu do
   begin
      tmp[i] := T[i1];
      i := i + 1;
      i1 := i1 + 1;
   end;
   while i2 <= fin do
   begin
      tmp[i] := T[i2];
      i := i + 1;
      i2 := i2 + 1;
   end;
   max := fin-debut;
   for i := 0 to max do
      T[i+debut] := tmp[i];
end; { fusion }

(* procédure TriFusionProcess
 *  description : Tri d'un tableau par fusion
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  debut, fin : délimitent un sous tableau 
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriFusionProcess(var T : array of integer ; debut, fin, n : integer ; boolTps : boolean);
var
   milieu : integer;
begin
   if debut < fin then
   begin
      milieu := (debut + fin) div 2;
      TriFusionProcess(T,debut,milieu,n,boolTps);
      TriFusionProcess(T,milieu+1,fin,n,boolTps);
      fusion(T,debut,milieu,fin);
      if not boolTps then affichTab(T,n);
   end;
end; { TriFusionProcess }

(* procédure TriFusion
 *  description : Tri d'un tableau par fusion
 *  auteur : INGOUFF Christian
 *  date : 14/02/2012
 *  PréConditions
 *  T : tableau à trier
 *  n : taille du tableau
 *  boolTps : mode chronomètre
 *  PostCondition
 *  T : tableau trié
 *)

procedure TriFusion(var T : array of integer ; n : integer ; boolTps : boolean);
begin
   TriFusionProcess(T,0,n-1,n,boolTps);
end; { TriFusion }


Var
	 tabDrap									 : array[0..15] of integer = (42, 26, 26, 42, 42, 42, 26, 26, 42, 26, 26, 42, 42, 42, 26, 26);
	 tab8											 : array[0..7] of integer = (428, 426, 767, 364, 127, 397, 344, 197);
	 tab20										 : array[0..19] of integer = (47, 237, 900, 592, 227, 289, 914, 488, 422, 913, 597, 720, 369, 729, 485, 262, 473, 921, 705, 354);
	 tab72										 : array[0..71] of integer = (704, 781, 38, 470, 144, 165, 867, 488, 361, 656, 535, 598, 555, 127, 825, 844, 40, 312, 265, 953, 909, 985, 322, 638, 470, 583, 110, 390, 287, 463, 2, 991, 243, 40, 461, 387, 204, 327, 875, 565, 982, 409, 162, 536, 535, 986, 379, 575, 298, 644, 528, 206, 628, 849, 843, 97, 432, 952, 487, 719, 415, 489, 709, 658, 528, 169, 45, 732, 495, 919, 296, 476);
	 tab112										 : array[0..111] of integer = (457, 12, 863, 443, 390, 438, 740, 34, 965, 946, 662, 814, 789, 758, 245, 741, 245, 963, 155, 733, 672, 813, 261, 840, 857, 992, 334, 775, 287, 810, 103, 744, 821, 965, 186, 211, 402, 926, 244, 367, 872, 905, 180, 660, 663, 425, 400, 908, 387, 554, 641, 58, 366, 901, 898, 223, 893, 232, 998, 180, 41, 100, 923, 861, 64, 109, 71, 466, 34, 315, 833, 906, 220, 12, 565, 883, 436, 964, 790, 823, 518, 431, 881, 884, 331, 778, 106, 223, 9, 103, 402, 49, 202, 325, 910, 266, 433, 981, 732, 467, 295, 564, 372, 515, 576, 936, 397, 11, 900, 187, 833, 417);
	 tab12										 : array[0..11] of integer = (37, 142, 253, 297, 339, 374, 549, 661, 772, 788, 902, 962);
	 tab234										 : array[0..233] of integer = (714, 301, 948, 491, 406, 171, 500, 509, 573, 548, 710, 897, 458, 976, 330, 438, 708, 797, 733, 272, 168, 247, 847, 104, 644, 857, 4, 831, 690, 421, 447, 404, 721, 395, 894, 127, 565, 393, 635, 137, 941, 345, 34, 398, 321, 364, 836, 28, 160, 568, 299, 328, 815, 145, 432, 459, 2, 435, 289, 692, 855, 736, 95, 576, 130, 989, 702, 694, 381, 336, 831, 322, 680, 865, 719, 1000, 228, 555, 28, 387, 122, 326, 714, 937, 471, 145, 395, 473, 579, 683, 165, 434, 419, 260, 9, 548, 248, 711, 242, 629, 46, 73, 950, 726, 937, 669, 726, 164, 223, 753, 550, 345, 79, 264, 281, 550, 408, 676, 23, 987, 359, 187, 421, 777, 447, 429, 324, 694, 139, 566, 323, 185, 638, 273, 910, 574, 942, 635, 737, 164, 388, 287, 509, 466, 550, 790, 16, 958, 465, 38, 944, 823, 225, 365, 599, 671, 793, 923, 364, 932, 488, 687, 117, 126, 959, 27, 700, 900, 661, 437, 64, 49, 723, 573, 514, 273, 362, 530, 230, 826, 567, 174, 649, 791, 538, 247, 461, 331, 170, 825, 263, 658, 512, 379, 783, 470, 405, 482, 370, 66, 918, 434, 115, 641, 6, 629, 913, 367, 158, 143, 193, 724, 317, 841, 515, 855, 88, 976, 186, 257, 800, 448, 915, 311, 827, 698, 781, 232, 180, 151, 298, 98, 584, 412);
	 tab542										 : array[0..541] of integer = (590, 40, 651, 957, 197, 794, 149, 921, 110, 990, 435, 965, 77, 410, 150, 334, 210, 597, 248, 521, 424, 945, 301, 655, 124, 452, 953, 221, 35, 364, 959, 625, 403, 610, 581, 600, 403, 729, 520, 513, 718, 955, 477, 795, 364, 626, 128, 574, 223, 376, 94, 646, 320, 395, 301, 444, 846, 253, 665, 881, 616, 624, 505, 19, 233, 85, 619, 635, 814, 139, 148, 531, 93, 624, 325, 457, 249, 453, 30, 471, 828, 124, 117, 148, 518, 417, 591, 364, 670, 256, 244, 286, 879, 749, 304, 112, 833, 922, 746, 646, 60, 893, 177, 153, 517, 501, 609, 766, 954, 639, 237, 781, 762, 353, 928, 279, 770, 519, 642, 439, 774, 886, 724, 653, 634, 28, 764, 466, 950, 510, 112, 10, 403, 288, 162, 919, 789, 770, 685, 742, 408, 921, 523, 169, 273, 450, 448, 42, 969, 89, 481, 743, 975, 205, 395, 608, 232, 159, 74, 181, 669, 185, 190, 71, 473, 351, 990, 262, 121, 674, 4, 529, 594, 526, 697, 867, 976, 145, 909, 944, 234, 389, 686, 208, 593, 81, 815, 825, 239, 888, 5, 908, 73, 194, 978, 546, 545, 968, 807, 665, 642, 810, 193, 236, 336, 890, 102, 311, 35, 10, 255, 268, 399, 941, 475, 992, 21, 289, 816, 260, 177, 820, 167, 250, 14, 145, 795, 559, 113, 601, 223, 754, 411, 416, 990, 746, 306, 91, 57, 340, 101, 312, 607, 500, 253, 82, 491, 274, 371, 306, 533, 547, 126, 700, 796, 140, 845, 590, 698, 958, 191, 921, 712, 602, 336, 701, 348, 642, 791, 405, 982, 892, 716, 589, 391, 968, 670, 881, 241, 40, 187, 774, 586, 312, 474, 382, 452, 319, 972, 149, 276, 163, 69, 987, 764, 405, 687, 111, 47, 478, 515, 28, 369, 231, 616, 759, 198, 285, 640, 439, 325, 826, 213, 911, 138, 686, 293, 589, 5, 264, 738, 280, 427, 806, 267, 190, 211, 953, 301, 257, 431, 816, 284, 799, 46, 900, 558, 244, 185, 197, 683, 509, 23, 895, 420, 161, 581, 712, 749, 585, 975, 487, 865, 402, 292, 131, 592, 503, 84, 892, 759, 514, 708, 43, 313, 753, 942, 870, 997, 127, 67, 680, 636, 89, 574, 55, 249, 155, 766, 998, 740, 741, 484, 604, 142, 776, 734, 733, 278, 817, 625, 37, 331, 332, 79, 643, 85, 21, 512, 82, 148, 579, 761, 783, 668, 335, 837, 916, 489, 603, 914, 228, 343, 398, 832, 485, 173, 565, 218, 451, 382, 843, 487, 713, 174, 566, 355, 259, 587, 867, 340, 734, 445, 101, 516, 112, 435, 353, 28, 923, 955, 942, 151, 298, 339, 982, 783, 512, 547, 1000, 962, 929, 843, 449, 641, 16, 15, 995, 275, 601, 861, 615, 334, 306, 715, 850, 418, 149, 203, 445, 72, 158, 386, 222, 455, 725, 204, 238, 236, 751, 238, 198, 679, 80, 647, 319, 96, 661, 314, 370, 261, 175, 984, 595, 480, 699, 445, 897, 847, 647, 342, 919, 804, 728, 141, 259, 452, 344, 496, 688, 94, 734, 886, 773, 813, 532, 91, 909, 192, 405, 278, 453, 579, 262, 48, 59, 961, 492, 956, 807, 138, 298, 726, 942, 25, 866, 200, 477, 210, 696, 165, 304);
tab1357 : array[0..1356] of integer = (7424, 9743, 4399, 8609, 4689, 3029, 5727, 546, 4724, 1114, 8204, 2309, 6672, 9779, 8779, 5782, 9133, 6798, 6500, 5807, 9063, 3764, 4700, 4640, 3629, 9788, 7203, 4780, 5982, 3226, 1752, 3406, 2968, 6151, 2014, 7656, 9180, 7740, 8202, 3903, 8854, 6405, 6212, 5525, 6183, 4990, 1306, 5315, 1787, 7806, 1122, 849, 1570, 5821, 5489, 5198, 5608, 2691, 9978, 1590, 5916, 1729, 4996, 8884, 7880, 7010, 6540, 7059, 4750, 4741, 961, 3603, 1145, 7172, 9128, 7328, 2162, 434, 2643, 3949, 8240, 3764, 4798, 9809, 9584, 286, 5006, 5192, 2977, 4983, 6782, 8893, 6712, 1777, 7776, 4591, 8787, 4315, 1650, 3536, 9055, 2610, 7139, 200, 9782, 6267, 7527, 1943, 6700, 169, 5891, 4939, 3932, 689, 4747, 3516, 974, 9753, 8707, 3950, 4736, 5489, 2842, 1447, 7266, 617, 6038, 6052, 4932, 7687, 9588, 3986, 297, 6726, 4185, 79, 2992, 1712, 2022, 9692, 1880, 7912, 4630, 5812, 8600, 9377, 9327, 9574, 9130, 8034, 3524, 3865, 3523, 6365, 5312, 788, 6982, 1350, 6840, 1913, 9036, 6427, 5899, 9333, 3152, 84, 9411, 6144, 1796, 1432, 5835, 3676, 9344, 465, 9487, 7944, 9842, 8814, 7517, 8971, 6848, 1040, 2836, 370, 7405, 8148, 1158, 4387, 9498, 7997, 6300, 8533, 4423, 2199, 7866, 7575, 2282, 7276, 3718, 4078, 8708, 9553, 7753, 8051, 18, 7239, 5995, 9859, 6053, 3511, 8830, 2900, 4551, 1666, 3270, 1956, 9814, 4428, 6342, 9311, 2424, 2642, 7844, 6847, 4840, 5709, 4421, 7121, 2985, 8139, 1198, 1692, 7692, 8950, 9743, 7709, 6189, 5737, 7568, 2241, 9248, 6398, 5141, 3799, 8064, 8411, 5754, 7877, 2838, 2096, 7188, 5261, 4737, 5031, 2107, 9576, 740, 6528, 6697, 3724, 4666, 7895, 5416, 2357, 6845, 5158, 66, 3033, 894, 7633, 5274, 141, 4031, 414, 3939, 2094, 8824, 9693, 9970, 1661, 1788, 7158, 6922, 6524, 2188, 9029, 6100, 2927, 5556, 2796, 6651, 222, 690, 2066, 2579, 7534, 7224, 2644, 566, 8117, 277, 5840, 8258, 4307, 6253, 2197, 6400, 5077, 1889, 6370, 6738, 3677, 3527, 3660, 201, 5715, 2688, 6300, 8642, 8243, 9095, 5292, 8464, 9785, 7358, 1043, 7318, 4581, 3686, 7884, 2698, 3963, 3723, 956, 8269, 9976, 3152, 4669, 5053, 5041, 1039, 1791, 8718, 4565, 5450, 8918, 280, 8137, 5217, 8921, 6380, 4312, 4213, 4844, 4097, 1571, 5886, 1414, 6152, 9571, 9298, 8849, 3534, 3021, 9804, 1802, 2997, 2956, 6471, 8050, 7996, 7509, 9840, 6713, 2074, 5289, 5631, 2353, 3425, 848, 1274, 9804, 5160, 5487, 4647, 9256, 7057, 533, 670, 3208, 104, 9967, 2056, 3637, 2988, 1860, 5438, 5985, 4815, 1909, 4034, 2811, 9417, 3873, 9524, 1490, 9162, 5154, 3843, 2587, 6001, 5117, 2390, 1160, 603, 7037, 415, 7659, 7569, 1085, 867, 7672, 1052, 2923, 1309, 4039, 4782, 6746, 24, 9597, 8654, 4057, 2407, 8071, 7930, 1930, 9561, 7091, 7084, 3404, 9677, 3084, 8520, 2067, 4244, 9122, 9104, 4658, 6781, 6673, 5743, 7647, 4345, 6794, 569, 5653, 832, 5350, 2399, 855, 4946, 1053, 4912, 7353, 9123, 2841, 9283, 8683, 9931, 6366, 2086, 9608, 9450, 606, 1675, 3693, 9727, 778, 8351, 6507, 7450, 4093, 4153, 1794, 886, 4721, 7447, 1718, 71, 9845, 2573, 5017, 897, 7484, 2369, 19, 325, 1652, 8702, 256, 8018, 788, 9863, 7467, 1393, 1537, 1160, 1120, 2315, 9510, 7626, 9765, 3603, 1779, 1559, 4489, 6500, 9005, 6206, 6570, 8849, 8779, 1586, 9745, 6263, 3955, 9764, 6587, 5607, 8466, 6842, 3624, 9254, 6705, 1091, 647, 8242, 2250, 1766, 557, 1759, 9392, 321, 5362, 1171, 1879, 9850, 7670, 883, 6055, 4239, 9732, 4834, 5825, 9476, 1096, 9780, 9240, 7682, 5387, 7706, 4524, 9010, 6959, 1229, 100, 7605, 9470, 2349, 9371, 26, 4108, 8763, 347, 9470, 9933, 2225, 9319, 7602, 3107, 5374, 1841, 2838, 207, 7666, 2314, 1302, 7445, 1554, 8984, 2831, 9259, 3507, 1841, 6218, 4735, 1941, 3823, 4205, 4290, 3193, 4231, 8397, 1955, 4577, 7867, 1888, 6801, 7185, 9489, 9908, 2558, 1329, 2746, 2765, 8994, 5060, 4066, 6439, 6613, 3049, 9270, 5872, 6556, 1111, 2090, 1290, 3051, 5912, 5495, 7340, 9105, 9725, 5737, 1060, 4301, 3603, 2947, 1102, 787, 2435, 1010, 3345, 3764, 3755, 6109, 2758, 8814, 174, 9197, 5427, 3223, 8466, 1298, 9778, 9576, 3387, 1068, 2627, 9299, 6562, 9966, 8403, 6287, 5702, 9463, 588, 9304, 2409, 1689, 91, 4844, 2698, 3435, 8607, 6453, 9543, 1365, 5266, 9717, 561, 693, 2940, 9027, 1990, 2718, 8603, 5377, 3785, 1229, 4676, 347, 1194, 3079, 6633, 6895, 2541, 7221, 6199, 4949, 8909, 6289, 9792, 1607, 9724, 8399, 8059, 9266, 9763, 3325, 8983, 324, 4017, 1922, 9350, 6007, 4639, 7952, 1384, 8424, 9180, 6059, 8770, 374, 9137, 5403, 7269, 1677, 2623, 3467, 6626, 1532, 9756, 6418, 3138, 9479, 4816, 1197, 8745, 4579, 4521, 7727, 4903, 8538, 9648, 4252, 4544, 4287, 2204, 5927, 2710, 1384, 1985, 1480, 1757, 1121, 6883, 9025, 2798, 9506, 2492, 9423, 1037, 2247, 5840, 4175, 1726, 656, 5372, 470, 5235, 9892, 8196, 137, 8430, 7844, 4388, 2973, 2131, 6592, 8900, 4841, 7975, 884, 6320, 9731, 2005, 3203, 8756, 4803, 2708, 1247, 4225, 3744, 3494, 65, 7919, 5219, 720, 3290, 5689, 5955, 3182, 3885, 6091, 1611, 1729, 479, 4584, 3859, 7070, 3483, 8699, 5045, 4367, 5019, 4776, 6372, 8221, 3531, 1174, 928, 4778, 5399, 4672, 8272, 5464, 2590, 3491, 6184, 5880, 9179, 2138, 9061, 3063, 8228, 672, 4791, 8707, 5256, 8650, 5777, 8738, 7348, 821, 3105, 2367, 5596, 9476, 587, 9126, 650, 1515, 3904, 6049, 6187, 2175, 1512, 8777, 5666, 7695, 4656, 4844, 9833, 3717, 7907, 8061, 4389, 2698, 6767, 9644, 1347, 2543, 8382, 8695, 3363, 1486, 1061, 8959, 962, 1648, 8085, 1612, 3163, 1988, 7660, 9349, 4163, 9172, 8125, 9828, 6867, 2780, 4671, 6699, 6497, 2578, 4760, 885, 5275, 1526, 528, 6621, 4069, 8909, 5315, 7432, 395, 6376, 6390, 1356, 8024, 4474, 2968, 1186, 6461, 628, 534, 624, 9799, 8658, 451, 6666, 1438, 5122, 3365, 7934, 7700, 8124, 8818, 2974, 9649, 9346, 9594, 3718, 8255, 4909, 1149, 8649, 1285, 7538, 5, 9308, 2012, 2972, 493, 8472, 3600, 1026, 9096, 3399, 9684, 9547, 64, 1122, 4668, 3428, 9055, 2367, 1552, 7873, 5341, 1201, 7219, 4934, 4918, 5473, 9843, 6066, 4122, 1127, 3604, 4126, 435, 5615, 7098, 927, 4087, 697, 1953, 3182, 4095, 1637, 2728, 4159, 2758, 7396, 7586, 1813, 9763, 9137, 9686, 5103, 337, 6904, 37, 5255, 2377, 9880, 1321, 6498, 1007, 4924, 624, 1441, 539, 7721, 2368, 4625, 8418, 4321, 7807, 2513, 5957, 535, 6671, 8715, 7931, 4257, 527, 7694, 3394, 213, 2796, 3731, 7117, 2833, 8985, 9493, 2712, 305, 5991, 3719, 5229, 6614, 5159, 5767, 4335, 7526, 392, 2753, 1846, 8199, 5265, 7803, 8733, 1936, 6517, 6664, 6192, 7044, 4357, 9586, 7256, 7153, 3316, 4373, 9985, 2301, 3865, 2697, 2606, 9856, 6415, 7834, 6469, 1574, 3601, 804, 9100, 3992, 3556, 945, 2190, 8821, 8748, 923, 756, 5264, 7587, 6948, 2308, 1943, 6534, 9563, 9095, 9850, 3935, 9080, 2150, 7800, 1777, 4756, 7655, 8191, 2589, 4124, 9765, 6190, 4927, 8864, 181, 8483, 9808, 2371, 7303, 8556, 3294, 8059, 3819, 880, 5007, 6126, 2823, 1540, 5689, 1918, 1389, 9624, 997, 3539, 7424, 2774, 8294, 5079, 964, 883, 9202, 729, 7072, 4129, 9592, 7253, 2612, 9400, 9624, 9914, 7955, 2917, 7973, 1773, 3797, 2979, 7899, 6619, 4519, 3588, 8537, 5907, 3212, 9534, 9445, 635, 2307, 7739, 5713, 3271, 8621, 4915, 3999, 5692, 9044, 3590, 2944, 1655, 2989, 2567, 1568, 943, 5484, 9541, 2716, 9281, 2520, 615, 5900, 7038, 4202, 4436, 2944, 7413, 3969, 2389, 8048, 6275, 128, 3760, 9545, 8748, 8675, 3543, 4440, 7718, 7133, 7384, 9372, 121, 9951, 940, 1064, 5435, 480, 3780, 4715, 2999, 4394, 614, 36, 8595, 5049, 2980, 6008, 9017, 5369, 4055, 5292, 5497, 7815, 4837, 4244, 6489, 8380, 8684, 4206, 5512, 6067, 3578, 5633, 6018, 4517, 6697, 1452, 4997, 476, 6166, 7995, 4869, 6779, 8031, 3464, 1828, 1011, 9471, 845, 6380, 3525, 6136, 1876, 1340, 972, 6120, 7828, 9351, 4804, 2034, 4863, 871, 5611, 496, 6888, 128, 7192, 8339, 5124, 7667, 4505, 3119, 2535, 1284, 1149, 5998, 3111, 2160, 5469, 3955, 8540, 8994, 90, 415, 333, 1062, 6535, 8161, 413, 1338, 194, 5276, 2208, 5805, 5771, 9096, 5932, 2962, 7435, 1055, 628, 1939, 4174, 3163, 3222, 5323, 9161, 6332, 7482, 4629, 287, 6022, 3623, 376, 6437, 3955, 1438, 2971, 2115, 1851, 4309, 2309, 7126, 6517, 8114, 2896, 5612, 4045, 5857, 3046, 5100, 6485, 4984, 9273, 9648, 8206, 4595, 8808, 4537, 2077, 3437, 4823, 8098, 7059, 5199, 4534, 1014, 6637, 7505, 3129, 8487, 1813, 5438, 5612, 8329, 3551, 8508, 3941, 7595, 4365, 6986, 2695);
tab3289 : array[0..3288] of integer = (849, 1970, 1968, 496, 175, 6562, 9304, 4712, 8639, 2740, 9535, 6737, 9799, 4734, 1270, 813, 1370, 8775, 3941, 9857, 587, 9378, 5469, 8916, 2928, 3976, 2856, 523, 8340, 9842, 3218, 9189, 1812, 5185, 9685, 1986, 1747, 8988, 6698, 385, 1728, 6232, 7122, 1527, 965, 8391, 2339, 2335, 7165, 6279, 2191, 7752, 5657, 7659, 6668, 8585, 1635, 9524, 9107, 9975, 9365, 2325, 9163, 1176, 7509, 8848, 3162, 9255, 7835, 9859, 9640, 9563, 6091, 6761, 1089, 7055, 5152, 3427, 9389, 2317, 9706, 1580, 69, 5362, 9239, 6736, 3946, 873, 6259, 3053, 848, 5624, 5377, 11, 6799, 2886, 8858, 9961, 2141, 6692, 9820, 1780, 6255, 5910, 8541, 7343, 2964, 3693, 769, 2353, 6009, 474, 3933, 6077, 5836, 3171, 2813, 9782, 4044, 9071, 2834, 4891, 4694, 8211, 4901, 1493, 1096, 3758, 1454, 3236, 450, 1273, 5016, 6704, 7182, 3556, 4046, 145, 7249, 4815, 2498, 3258, 5289, 6430, 9335, 1124, 9600, 2147, 906, 3644, 1217, 3739, 8534, 5911, 1949, 3435, 7404, 3044, 7192, 8857, 6280, 7642, 129, 1295, 4346, 7310, 4851, 8392, 7455, 2099, 3206, 9953, 5356, 8495, 6382, 4690, 9619, 5982, 6837, 524, 9625, 8054, 4262, 8159, 3964, 6211, 1593, 1367, 9255, 8785, 224, 5534, 6427, 352, 6829, 772, 7662, 1679, 9163, 5117, 3777, 2368, 5069, 9133, 863, 1451, 3823, 481, 7433, 659, 1004, 7057, 8712, 5266, 5216, 2675, 1477, 6809, 4042, 732, 5593, 4266, 6266, 2019, 4618, 3094, 2790, 2279, 4772, 1953, 7396, 8549, 4320, 2465, 7682, 5183, 3915, 1504, 5663, 1347, 2162, 6667, 8404, 874, 1933, 3620, 3549, 3409, 428, 7590, 4141, 6020, 1856, 406, 8039, 6473, 3499, 829, 8752, 8271, 2781, 6147, 6820, 7101, 8611, 4501, 2283, 2526, 6005, 7946, 3872, 8167, 4612, 2276, 9040, 6544, 5895, 2588, 9953, 6323, 177, 4093, 2342, 2033, 4498, 381, 8505, 7997, 1209, 7256, 6268, 3990, 3402, 3087, 1090, 2013, 7588, 3373, 4538, 3593, 1318, 8410, 1759, 5929, 686, 798, 2473, 6581, 3385, 2425, 2903, 3562, 6518, 5245, 5594, 1015, 5625, 4098, 9012, 6834, 1353, 5279, 823, 4755, 8366, 1913, 6768, 5954, 5285, 1306, 9546, 6602, 9715, 1304, 2531, 401, 2101, 5003, 6981, 5485, 7428, 9883, 9046, 3945, 5127, 4639, 4960, 752, 8737, 3972, 7586, 90, 9251, 8408, 4845, 7616, 321, 1612, 3570, 5606, 2917, 3115, 2208, 2632, 4418, 4738, 3033, 6519, 9741, 13, 2004, 7169, 9896, 1049, 1113, 5023, 5688, 6073, 5774, 4425, 44, 3360, 4514, 9294, 1767, 9359, 6910, 2088, 970, 479, 7693, 3887, 3594, 9900, 6519, 8012, 4638, 9551, 4530, 4379, 9564, 6533, 1547, 9459, 7582, 2660, 4481, 3270, 8732, 255, 7694, 8776, 3614, 2208, 8070, 5381, 1566, 4979, 7469, 2536, 5458, 5162, 6422, 9051, 5062, 2941, 7062, 9699, 2491, 1592, 4077, 2055, 8125, 5623, 1513, 5706, 8282, 5994, 8976, 7014, 6249, 6669, 5789, 9862, 8876, 3859, 5243, 442, 8838, 2711, 2977, 4295, 7872, 9398, 3346, 2933, 2339, 408, 2632, 4830, 2000, 6709, 6884, 124, 2332, 8396, 5830, 614, 4390, 4805, 7627, 638, 1473, 3416, 500, 349, 7274, 5742, 790, 6111, 8453, 3766, 406, 6325, 3164, 3752, 9258, 5503, 4159, 1890, 332, 6158, 8598, 7215, 6282, 929, 5611, 2111, 1542, 10000, 6915, 9169, 637, 8388, 2585, 1136, 8737, 9858, 6878, 9527, 5969, 5331, 3293, 6375, 1655, 6457, 126, 913, 1959, 4285, 2802, 2290, 443, 1399, 9504, 6724, 2328, 5115, 8834, 3870, 5114, 5749, 3038, 5751, 4137, 5622, 6886, 2873, 5480, 3764, 2400, 1449, 9094, 5692, 7824, 749, 2148, 7949, 1661, 4106, 2234, 4462, 6396, 2676, 5861, 5900, 9399, 8188, 1014, 8233, 2058, 6127, 3981, 5095, 1877, 8117, 717, 8763, 990, 6197, 2527, 3390, 7646, 1620, 9081, 5469, 2368, 1229, 3418, 4028, 5334, 5651, 8490, 1730, 8326, 4350, 7629, 7725, 2538, 8642, 5957, 4595, 4768, 9938, 9690, 6645, 8054, 407, 5408, 9044, 6603, 7934, 2433, 4249, 9554, 1514, 9717, 1921, 2742, 3135, 5949, 8076, 8786, 4439, 9805, 7112, 8788, 7433, 4836, 1326, 6074, 792, 5920, 842, 729, 5610, 7487, 8783, 6016, 2894, 7827, 2619, 828, 260, 6867, 381, 1773, 6584, 2302, 4514, 9718, 8251, 2589, 8504, 2689, 2394, 5615, 1477, 9826, 450, 2802, 5899, 1242, 8722, 6741, 1971, 4331, 4227, 754, 346, 7121, 8581, 2964, 7948, 8840, 9831, 8329, 612, 6414, 631, 5126, 6132, 8881, 7715, 4635, 1569, 108, 249, 3045, 9933, 699, 5847, 5832, 1941, 4568, 2573, 3911, 8898, 6799, 4665, 9244, 3920, 3245, 2208, 1868, 2084, 2038, 196, 2696, 8452, 827, 7821, 4584, 9707, 5535, 9219, 1276, 5643, 9468, 4321, 5576, 166, 167, 1407, 2107, 4735, 3979, 6017, 3632, 778, 681, 2875, 4697, 3926, 5083, 6564, 6009, 7120, 6760, 8704, 5572, 7586, 6525, 155, 7293, 2060, 9374, 8569, 7702, 8841, 2889, 3277, 9007, 3056, 4684, 1113, 7790, 8662, 7130, 1422, 9440, 7811, 4297, 4137, 1736, 9379, 700, 7745, 6499, 7460, 6448, 2070, 5046, 2973, 2225, 2339, 5032, 1598, 907, 2733, 439, 3796, 6009, 9446, 6852, 693, 559, 4642, 9354, 7688, 6063, 8794, 5499, 360, 2930, 7235, 9738, 3630, 4979, 6236, 1090, 1427, 8306, 6135, 4399, 531, 8474, 9430, 2129, 9380, 2163, 2567, 3176, 8171, 2013, 27, 8864, 2571, 4669, 8218, 258, 731, 7011, 5757, 1091, 9940, 2991, 828, 3570, 7969, 7064, 4659, 9395, 5370, 794, 3794, 5900, 9267, 3223, 8028, 8646, 5385, 595, 1822, 3556, 2607, 1849, 2419, 5177, 6517, 636, 5435, 7248, 7647, 1191, 8338, 7587, 4182, 9165, 1156, 2150, 6229, 5814, 1545, 1598, 6607, 5338, 7498, 5873, 8561, 5526, 4519, 3945, 6121, 6341, 7501, 8727, 8189, 9920, 3904, 4705, 556, 9339, 1952, 8202, 530, 289, 5788, 4711, 9454, 6943, 6861, 5683, 2757, 8405, 7281, 9364, 3743, 4779, 5236, 2303, 304, 9755, 6248, 6424, 6095, 3748, 5151, 4284, 3668, 9055, 8988, 4223, 8393, 940, 2424, 8923, 1229, 8212, 3633, 683, 5154, 494, 6365, 7911, 8899, 3646, 7274, 2641, 8424, 2510, 4943, 8727, 2265, 1191, 5151, 8360, 4939, 301, 2643, 8606, 9355, 1630, 2828, 7748, 2570, 5251, 6670, 3798, 3463, 303, 4480, 8617, 796, 845, 6527, 9694, 4491, 3801, 2334, 2914, 6310, 7277, 1641, 8575, 8467, 6791, 6934, 3406, 7092, 9576, 2011, 6447, 1205, 4838, 4194, 3775, 89, 863, 7572, 3551, 1166, 2052, 2167, 1961, 2896, 8694, 1655, 7386, 2494, 3989, 300, 8804, 1266, 1940, 7378, 9733, 8731, 4311, 3138, 5822, 3886, 5148, 2269, 5091, 9985, 6462, 8865, 74, 7325, 6437, 3624, 8490, 8488, 5791, 451, 1384, 4484, 2105, 8769, 6977, 6093, 9069, 5781, 7358, 1008, 3158, 7091, 9739, 7469, 228, 5561, 1354, 5375, 7829, 6445, 5360, 4290, 5310, 5433, 1614, 1746, 9057, 104, 233, 4847, 554, 1616, 9331, 2658, 385, 6308, 8751, 9453, 2088, 6109, 461, 5245, 3199, 199, 2713, 3426, 5759, 4067, 8800, 3588, 511, 4160, 7877, 5821, 9592, 9491, 7566, 8648, 9595, 7799, 3495, 148, 9414, 2825, 2806, 9799, 9132, 1556, 9251, 1220, 7664, 9712, 6464, 862, 9911, 9177, 4288, 5670, 3243, 3088, 9257, 3754, 7247, 7134, 9574, 6838, 6625, 7140, 5486, 6219, 4938, 8981, 6366, 4352, 1806, 9171, 4150, 937, 727, 3401, 2156, 8390, 3112, 8620, 9252, 3022, 7796, 3540, 8691, 1039, 6627, 7948, 4793, 3873, 5081, 4366, 710, 1705, 1506, 6196, 7924, 6443, 5176, 4290, 794, 6981, 3460, 4943, 7918, 4187, 8344, 74, 2577, 1456, 8694, 1829, 4478, 6489, 5368, 3169, 7528, 1994, 1116, 2320, 5866, 6196, 6686, 6576, 7901, 8191, 2771, 5825, 4633, 7947, 114, 5427, 4928, 3574, 370, 2846, 7760, 8713, 2919, 336, 168, 1612, 2164, 4646, 8101, 7532, 7814, 5629, 9525, 8929, 7948, 5390, 5125, 4634, 1966, 3026, 2824, 4737, 8850, 7457, 2683, 8963, 2884, 7611, 2536, 3253, 456, 296, 1966, 3375, 631, 2134, 4987, 2795, 6779, 3088, 326, 4592, 8716, 9851, 3520, 6664, 5241, 8645, 1297, 7206, 1670, 4121, 1942, 519, 1578, 4625, 9482, 4461, 2236, 2017, 7714, 2691, 2313, 9679, 6066, 2944, 1812, 1052, 5738, 8591, 4139, 6064, 3182, 2855, 5915, 6702, 9518, 1155, 5346, 815, 8361, 7016, 4936, 302, 7535, 6513, 4927, 7016, 974, 7162, 9033, 8687, 9852, 1345, 8366, 5918, 4288, 177, 6969, 26, 8768, 1108, 6090, 1949, 3962, 2005, 8651, 3480, 3159, 3996, 4294, 1519, 1012, 9230, 1821, 8546, 5742, 6747, 5561, 6716, 3909, 4594, 5402, 3761, 5938, 3767, 9678, 226, 3944, 6646, 252, 2711, 7753, 6341, 4660, 1715, 8345, 3310, 5194, 1504, 7306, 9488, 3023, 8317, 8717, 4843, 6862, 4459, 1590, 2423, 1174, 5498, 7016, 6576, 9258, 2954, 343, 8935, 3179, 4287, 5581, 3430, 6998, 3334, 9771, 1657, 5048, 8116, 4967, 242, 9620, 2272, 9729, 2642, 588, 8446, 7484, 7450, 2905, 9074, 9872, 4079, 4571, 6887, 655, 3829, 9840, 997, 2764, 3019, 5284, 8344, 6448, 2281, 1678, 6219, 3938, 6726, 4334, 8904, 6967, 3954, 1176, 6696, 6595, 1763, 5142, 4079, 9213, 8046, 3152, 9084, 2124, 7723, 5971, 2778, 1552, 5810, 3775, 4315, 8829, 9059, 2659, 5276, 1340, 4337, 1495, 5277, 1062, 5829, 4181, 8028, 9782, 5356, 4723, 6376, 7119, 9864, 455, 6331, 7910, 3606, 5414, 34, 1329, 1384, 2812, 2880, 7194, 6586, 7195, 6022, 5645, 9854, 1298, 6984, 4190, 2792, 2261, 5251, 8621, 6441, 3279, 8402, 1797, 8002, 4778, 8915, 7866, 5232, 5246, 5775, 8838, 659, 5809, 166, 2043, 8620, 3046, 9237, 5205, 241, 5259, 850, 94, 6556, 7833, 4284, 9348, 93, 9535, 7969, 6534, 2813, 6370, 8330, 815, 1148, 7244, 8680, 6379, 2490, 4455, 5216, 3149, 263, 5382, 5191, 8882, 8427, 4428, 4087, 8668, 9686, 4936, 8761, 6242, 2769, 3045, 5590, 2861, 2579, 3558, 9394, 5392, 9928, 7723, 6206, 1075, 4967, 4886, 7454, 7456, 9341, 2669, 604, 9603, 8051, 5795, 8485, 6478, 223, 2572, 5145, 9908, 7507, 3906, 6150, 275, 6950, 1739, 3136, 9529, 5297, 2529, 4920, 5224, 252, 1126, 6298, 5219, 6011, 3751, 2675, 5351, 6420, 3279, 4954, 4471, 9073, 3439, 948, 9296, 6010, 6092, 9203, 3517, 9998, 5353, 3792, 6947, 7091, 6928, 6475, 2387, 9457, 1394, 7611, 9708, 2520, 3908, 4927, 8530, 7659, 7601, 3881, 4079, 880, 8835, 8549, 9953, 2273, 9496, 9248, 8283, 5588, 8451, 1800, 5585, 3803, 5591, 2532, 894, 2519, 9006, 3280, 1975, 400, 891, 1683, 2919, 4799, 6609, 1449, 2457, 4210, 5329, 6536, 5089, 4164, 5084, 5041, 6436, 4580, 4289, 4719, 168, 2739, 6518, 5752, 6541, 2109, 8283, 7434, 4627, 7289, 714, 6601, 7689, 1604, 8284, 608, 6402, 4892, 2057, 8859, 9102, 7386, 5394, 4191, 1549, 478, 9232, 7984, 5058, 3520, 2703, 5225, 6258, 9220, 977, 2798, 1329, 9260, 232, 5955, 6548, 945, 2556, 4237, 2549, 839, 4845, 8951, 5731, 6901, 7809, 4832, 4286, 3203, 9022, 5834, 3681, 8254, 3818, 8738, 1773, 6520, 3962, 8030, 5740, 4938, 828, 7068, 4197, 1060, 3022, 745, 2005, 5578, 4982, 4553, 6416, 9826, 3503, 2146, 6726, 1312, 6978, 1012, 4514, 6000, 6845, 8194, 4253, 663, 6932, 6026, 7182, 893, 4056, 2922, 5831, 4883, 9989, 28, 5943, 3011, 773, 7947, 8588, 5755, 2499, 5004, 5580, 6002, 7149, 2306, 7313, 4127, 3317, 1826, 126, 162, 20, 4379, 824, 6951, 404, 8006, 7844, 4459, 927, 3675, 9342, 915, 3703, 5284, 3926, 4475, 3230, 2513, 229, 5729, 7516, 5809, 1730, 4665, 8115, 9042, 8791, 1431, 868, 8917, 1593, 887, 3295, 2416, 7838, 3698, 422, 5681, 8156, 1348, 9356, 7497, 2263, 3058, 2780, 6188, 7533, 6010, 8701, 7762, 1738, 6217, 3570, 3467, 882, 1684, 2509, 9673, 3115, 3376, 8589, 4707, 4263, 1883, 7123, 2100, 5581, 7544, 7781, 3736, 8892, 7136, 1233, 1154, 194, 4013, 7342, 7726, 22, 6043, 5487, 1760, 2260, 9057, 5227, 3141, 741, 7735, 2814, 3855, 1110, 1402, 8562, 5372, 3285, 5685, 7472, 8866, 3229, 5253, 2601, 2120, 2388, 3834, 3273, 2582, 7846, 615, 308, 7868, 6658, 5795, 9627, 8917, 4851, 4853, 2058, 5592, 2587, 4871, 9447, 3697, 6273, 8008, 9069, 9557, 3693, 6541, 8422, 6921, 1793, 1023, 9040, 4181, 4857, 2313, 6762, 2702, 2928, 7069, 570, 9585, 2864, 196, 8501, 7714, 5049, 558, 3306, 7636, 5429, 2752, 1333, 1701, 760, 401, 1258, 4452, 6941, 9680, 1372, 8734, 703, 412, 2914, 5559, 2724, 9675, 8261, 5652, 6744, 8830, 5236, 9607, 9026, 3736, 7321, 4075, 4294, 626, 1710, 9722, 3378, 3043, 1423, 4137, 3444, 2680, 8589, 384, 2360, 9961, 9118, 3062, 372, 2031, 8621, 3096, 1706, 6881, 8747, 8450, 5711, 3982, 8057, 4737, 7718, 5377, 8811, 2012, 6003, 521, 1734, 9381, 3563, 3156, 3517, 7006, 5836, 2105, 7390, 8195, 2065, 6507, 1257, 2437, 8538, 9877, 5532, 243, 6758, 4279, 8692, 2468, 8261, 6748, 7204, 5978, 2125, 6015, 7989, 8128, 6535, 9723, 7508, 98, 2878, 1025, 7103, 8714, 3130, 4493, 6909, 5195, 999, 8165, 7631, 9537, 8042, 3163, 9779, 4799, 7441, 8471, 7266, 5701, 5218, 4470, 1679, 7343, 484, 9668, 5470, 7018, 9390, 2978, 7115, 2268, 4002, 4218, 981, 7132, 8710, 7890, 2326, 9709, 6054, 9957, 9245, 4095, 3119, 9024, 8894, 560, 7494, 6159, 6261, 2712, 628, 7940, 54, 1112, 7607, 5524, 8129, 6997, 8501, 5244, 9265, 2503, 9462, 246, 9634, 8171, 8135, 1960, 7880, 4189, 1916, 7125, 8283, 5035, 6148, 7176, 5595, 3641, 3335, 1856, 6352, 3963, 9795, 6406, 5074, 7402, 1929, 3203, 4399, 429, 8447, 3663, 2932, 7908, 3908, 2565, 6079, 2043, 4525, 3958, 6231, 6441, 1082, 4514, 1476, 7230, 1690, 7071, 870, 5024, 8926, 7222, 8987, 8721, 3627, 4061, 6123, 5555, 7263, 522, 5984, 5709, 4184, 8915, 3617, 8092, 1480, 9695, 135, 6004, 3652, 6365, 2445, 4734, 878, 3920, 1963, 2567, 990, 2833, 7591, 9916, 54, 6577, 8636, 3681, 637, 4759, 9236, 7900, 5280, 5219, 3609, 9464, 4133, 7225, 7556, 5612, 6919, 7690, 1616, 571, 4054, 4060, 5305, 4932, 7980, 7268, 7498, 8969, 100, 5089, 8884, 154, 1665, 7520, 3835, 2302, 2279, 3070, 201, 7558, 8288, 3809, 7022, 2421, 1034, 4577, 8032, 7953, 2267, 9648, 8524, 6320, 3707, 3828, 1252, 1687, 1095, 8750, 655, 1195, 3838, 9539, 1349, 5503, 7059, 5183, 7804, 9337, 8252, 8005, 6894, 6540, 1814, 3915, 8960, 2847, 8492, 6991, 800, 758, 6639, 9323, 7078, 346, 3151, 8329, 2032, 4245, 7079, 2686, 5440, 916, 2225, 6788, 6418, 9283, 1971, 4222, 8619, 223, 2227, 5513, 6762, 4040, 9428, 5721, 6887, 7920, 2712, 7686, 8677, 9350, 7009, 5755, 9695, 159, 4084, 1726, 4404, 1162, 4412, 9843, 2078, 6636, 6631, 8495, 5919, 8601, 2717, 4537, 8824, 4943, 50, 5585, 8983, 9477, 1305, 5870, 7396, 4017, 3555, 6073, 3366, 563, 1827, 3061, 722, 5910, 4787, 5125, 7072, 9198, 4967, 9149, 5834, 1598, 7644, 1752, 199, 360, 6289, 9022, 5303, 6338, 4606, 4286, 5815, 5911, 155, 3210, 9927, 3709, 9283, 3293, 4272, 1109, 6353, 4993, 7019, 1139, 117, 4091, 337, 5084, 3239, 6171, 6682, 882, 7922, 6880, 1242, 4210, 5901, 6545, 548, 507, 830, 6362, 6418, 984, 9572, 6344, 4693, 8854, 9637, 8965, 9963, 5989, 3957, 6982, 7128, 4074, 1072, 7465, 9158, 4311, 3635, 5839, 5193, 1557, 2719, 6435, 5767, 8620, 2979, 6314, 9127, 3808, 2676, 5544, 4792, 2247, 1888, 9484, 1101, 1524, 8448, 1064, 7513, 2405, 8045, 4641, 6479, 9117, 2105, 5636, 3428, 5740, 1475, 8620, 7296, 4194, 5054, 3062, 2813, 8033, 9376, 1939, 1840, 2051, 7483, 6632, 4297, 9370, 6115, 5398, 893, 4563, 6461, 8405, 6967, 4506, 3045, 3446, 3622, 5150, 9082, 7049, 889, 556, 5669, 8185, 4749, 722, 1247, 7562, 8754, 622, 9501, 594, 2672, 6983, 7226, 6969, 6352, 3340, 2366, 7244, 7902, 8827, 5649, 4869, 3332, 8694, 8314, 6954, 3844, 7395, 4003, 4732, 7951, 9671, 2917, 2700, 393, 4163, 262, 9147, 4784, 9762, 9741, 7456, 6745, 6966, 4424, 3096, 306, 6790, 340, 8208, 5617, 5989, 3076, 8948, 4682, 1390, 5902, 8525, 8785, 9904, 3257, 6736, 9575, 6173, 9436, 9968, 336, 9697, 9115, 5120, 9458, 8855, 2575, 6203, 5821, 6999, 9298, 6126, 3789, 9638, 4333, 9405, 5626, 7409, 8353, 307, 8799, 4255, 8832, 7583, 4159, 2088, 4319, 3733, 8261, 3754, 3701, 8597, 3450, 2815, 3716, 2908, 1669, 6291, 9110, 7489, 3290, 8408, 3614, 7078, 8045, 7947, 6482, 3670, 5355, 4835, 3977, 4154, 9089, 2808, 1737, 3247, 4896, 6055, 6980, 3157, 9808, 680, 1753, 3258, 3494, 5469, 6165, 5163, 1759, 5275, 2652, 5048, 3682, 6266, 2126, 1726, 4212, 8608, 5396, 9567, 3442, 9372, 3720, 2530, 2180, 5456, 5777, 7075, 1511, 2757, 231, 1318, 3436, 1984, 4576, 6930, 7452, 740, 2093, 9211, 6015, 4744, 4259, 9696, 1009, 6384, 1422, 5221, 4991, 6818, 4788, 8432, 6189, 8507, 962, 8369, 3963, 6739, 5443, 5473, 9495, 5674, 6791, 2931, 7658, 1366, 9860, 5110, 2106, 1952, 4320, 8120, 6696, 8578, 7816, 7705, 4962, 9238, 2926, 9952, 6055, 7713, 8384, 2244, 6220, 9346, 612, 183, 6085, 6055, 5655, 5579, 1728, 2446, 8509, 9386, 3812, 8369, 4495, 5918, 321, 8814, 4038, 7016, 7392, 1853, 4721, 2354, 1091, 7646, 2306, 7145, 5358, 689, 9389, 1578, 35, 10000, 1760, 6119, 6054, 7415, 1697, 7782, 9860, 206, 7167, 3672, 8574, 1662, 9589, 8895, 476, 3626, 5911, 7867, 5479, 631, 221, 6569, 8276, 2526, 3714, 3634, 3214, 3102, 5211, 3249, 3102, 6970, 9367, 9155, 4384, 1064, 6937, 4244, 1269, 4104, 7915, 9843, 5765, 7504, 8738, 6240, 1129, 4648, 4107, 6608, 5278, 4327, 3176, 3554, 6853, 6890, 7188, 67, 9992, 2398, 3315, 3093, 9368, 2682, 2248, 3752, 3745, 9184, 7996, 5014, 3288, 5910, 4857, 9052, 3414, 3594, 5292, 4542, 8241, 9399, 1149, 3519, 3726, 4325, 7072, 578, 1215, 4259, 644, 1206, 6657, 3958, 4299, 6025, 6639, 6546, 9776, 384, 5730, 7771, 5397, 9017, 3681, 254, 8069, 7094, 3847, 3361, 1636, 2087, 2760, 2784, 5605, 6485, 7109, 2677, 7062, 8323, 6935, 7706, 9529, 3592, 1664, 3827, 9616, 8303, 372, 9391, 8686, 6102, 7162, 4083, 5119, 842, 4336, 3188, 7936, 8182, 6549, 9571, 269, 9308, 2355, 5874, 5792, 9463, 8550, 2854, 7786, 5485, 560, 7314, 9076, 2223, 1140, 8692, 525, 1512, 8083, 9211, 7614, 5244, 3293, 2732, 6086, 7629, 5920, 4021, 5811, 2468, 3592, 6080, 1775, 5946, 1953, 7567, 5408, 503, 421, 3193, 5987, 980, 507, 5063, 3202, 1646, 3754, 3727, 3158, 1836, 2937, 771, 7080, 6230, 3502, 3166, 3859, 9422, 7187, 9669, 1889, 778, 5748, 3664, 6723, 7701, 1231, 2131, 8203, 1651, 5324, 4189, 2630, 5830, 9252, 5832, 7475, 3005, 9558, 632, 4841, 2494, 1403, 1921, 8724, 4905, 5086, 2582, 4326, 2272, 2250, 6215, 3049, 7998, 9878, 9772, 5699, 1108, 1902, 3901, 2759, 7225, 8090, 5388, 3054, 7341, 1219, 529, 346, 776, 1161, 5187, 3270, 2563, 7107, 1993, 7467, 2193, 4574, 1793, 4464, 6824, 8007, 7513, 4822, 7884, 7284, 520, 8992, 9185, 4420, 1750, 6410, 2510, 7138, 9464, 9850, 8357, 9992, 196, 9133, 1153, 5382, 2403, 3715, 2489, 4395, 1182, 4681, 8969, 2974, 9144, 5793, 980, 6657, 614, 8864, 3940, 1134, 7856, 3125, 5554, 9606, 9534, 8063, 6743, 8998, 7913, 5100, 8990, 8108, 4232, 142, 3489, 6634, 3857, 5978, 1029, 5038, 658, 9998, 8012, 9802, 5790, 8992, 6458, 6404, 7855, 397, 7538, 5711, 3522, 3091, 5316, 3056, 1153, 2059, 2053, 9066, 7158, 1042, 7173, 1390, 1183, 662, 8024, 5040, 6639, 9052, 77, 7296, 9049, 8089, 7097, 4839, 7080, 3555, 1243, 4935, 3951, 8780, 645, 7473, 1870, 5961, 528, 3023, 8019, 2580, 2088, 5177, 3622, 9261, 6567, 4805, 9922, 4590, 9844, 6561, 3641, 9921, 3857, 2690, 8009, 954, 7529, 5089, 4508, 8771, 23, 8459, 7551, 668, 5931, 9420, 6629, 6458, 2443, 4648, 9038, 4530, 9824, 2659, 3791, 6390, 7464, 3712, 979, 7307, 272, 4620, 7227, 4128, 7310, 5236, 5082, 4838, 324, 9589, 3609, 347, 8047, 1159, 1014, 3977, 578, 7642, 435, 3021, 2290, 9473, 7551, 2113, 2131, 1341, 8503, 9595, 5052, 9482, 6901, 5324, 4102, 4128, 9452, 1411, 9363, 4533, 6248, 9686, 4122, 9856, 32, 2168, 1014, 1046, 6145, 1592, 8688, 6580, 4613, 977, 6052, 2163, 3090, 8183, 3503, 1593, 7777, 8555, 1074, 4677, 3879, 5175, 8805, 3331, 6585, 8167, 7864, 2833, 7853, 1985, 2689, 7885, 4153, 3703, 8931, 297, 5295, 7618, 6877, 9907, 8595, 2928, 2069, 1685, 1110, 5572, 3277, 8886, 4126, 4350, 3563, 8005, 9525, 2367, 1335, 6110, 534, 9198, 8942, 8386, 1183, 1631, 6271, 5335, 5333, 5201, 5632, 627, 2819, 2508, 533, 1414, 5435, 2602, 3098, 6544, 8173, 6374, 5430, 2299, 724, 8992, 303, 249, 1359, 1638, 6358, 1893, 836, 5300, 279, 2018, 6930, 6549, 7352, 2262, 1750, 2983, 2889, 4568, 5490, 3422, 5982, 924, 6023, 9079, 7468, 4196, 5453, 2897, 6495, 6177, 1889, 6798, 6425, 3248, 8435, 2783, 5140, 9270, 8082, 5418, 1287, 5012, 1967, 8639, 7274, 3716, 1621, 162, 8284, 7111, 3584, 4265, 8035, 9606, 3344, 5502, 3802, 8796, 8399, 296, 4972, 288, 7093, 1397, 3536, 5527, 4179, 8676, 4797, 2261, 4093, 6084, 7272, 6060, 4722, 4546, 9776, 6342, 4708, 8059, 3453, 8291, 2323, 1487, 7897, 5666, 6988, 1698, 4462, 5387, 1993, 9434, 5675, 9086, 830, 9210, 4613, 5009, 7885, 9409, 7269, 1978, 5492, 4541, 8037, 214, 9087, 7812, 6556, 3794, 5871, 8, 2084, 8194, 1494, 9980, 3860, 8482, 1677, 8321, 3868, 3670);
tab7412 : array[0..7411] of integer = (7754, 9543, 2755, 8584, 8752, 7367, 3592, 6637, 6776, 861, 8614, 2268, 5402, 6651, 2481, 4488, 4463, 9036, 8281, 333, 9043, 364, 8526, 536, 344, 2386, 9018, 2021, 706, 2886, 5690, 8460, 2428, 8445, 7044, 1180, 5812, 635, 7816, 2587, 1496, 6429, 4854, 6898, 3080, 7334, 1385, 7542, 6370, 9666, 7874, 5412, 30, 6400, 5948, 373, 8785, 4966, 2393, 9491, 7851, 8083, 7950, 278, 6527, 4993, 1458, 2338, 5628, 9273, 4925, 7124, 5702, 9778, 4021, 8781, 7112, 5406, 6322, 3481, 5071, 4196, 8893, 5101, 596, 4841, 5473, 9380, 9806, 7866, 8871, 7657, 5949, 6821, 7934, 2476, 1814, 9392, 4813, 7441, 8664, 9737, 4565, 4365, 9515, 8585, 3146, 6627, 3991, 9468, 108, 9062, 3663, 9000, 4162, 4258, 3841, 9635, 3638, 3647, 7501, 2509, 1303, 3449, 9329, 9237, 5924, 1142, 8628, 737, 8583, 7291, 474, 3148, 1656, 9988, 1733, 4801, 6615, 5723, 4268, 6722, 4784, 7931, 5722, 8945, 2189, 9562, 8580, 5826, 3208, 6080, 8335, 4510, 9528, 7663, 3746, 5452, 8805, 2373, 6188, 7388, 9664, 6661, 535, 1319, 6649, 2267, 6120, 3263, 7989, 387, 9984, 2773, 8317, 5705, 1717, 505, 5267, 296, 6331, 8474, 6376, 4665, 2984, 5903, 2328, 6730, 1354, 1133, 9102, 7542, 8520, 8766, 4202, 9054, 84, 850, 1320, 6203, 4113, 9309, 6590, 4096, 2081, 4906, 9801, 3798, 5411, 5067, 4094, 1741, 3540, 469, 6406, 6524, 6372, 8734, 3253, 7726, 9866, 2354, 5267, 8385, 1120, 9468, 7439, 1203, 318, 8759, 7406, 4430, 8067, 3995, 8526, 148, 8901, 8326, 3946, 4311, 3392, 8040, 6052, 6932, 8508, 2458, 3455, 4880, 1191, 6707, 2605, 1056, 9061, 7871, 9441, 180, 7339, 6879, 1383, 7656, 5638, 8788, 2086, 3705, 2783, 612, 3852, 1683, 8937, 7798, 5994, 2329, 5837, 2045, 9261, 4345, 4502, 2715, 9224, 5693, 9422, 1828, 6748, 8483, 9699, 6189, 8662, 7037, 3068, 45, 4693, 8705, 8833, 6779, 2409, 1615, 7390, 6261, 3298, 6327, 4058, 9291, 8656, 9895, 1335, 7916, 4239, 5837, 631, 3463, 1529, 52, 5291, 8277, 8535, 4989, 4465, 7197, 2026, 7533, 7241, 6719, 6237, 6073, 3497, 8646, 7688, 887, 4907, 985, 7213, 8964, 275, 5868, 8859, 1610, 3784, 3098, 7446, 4414, 6560, 8975, 4466, 1850, 7251, 3000, 6838, 1716, 196, 8864, 9248, 7436, 5582, 5485, 3509, 9079, 4130, 1196, 9965, 9036, 2181, 7178, 8000, 2455, 3046, 6859, 4065, 6829, 9956, 1511, 1242, 6515, 485, 5708, 8364, 7736, 8707, 5202, 9451, 8902, 4065, 8699, 6338, 9646, 4183, 9847, 8724, 8313, 1042, 8689, 7349, 3223, 5866, 5348, 5677, 8911, 2206, 9742, 5740, 2161, 1252, 6982, 8676, 1736, 2689, 7039, 9472, 1395, 2241, 8923, 297, 6305, 7621, 6634, 5951, 1804, 6480, 4675, 116, 7522, 3363, 7464, 744, 9229, 2812, 6421, 8139, 5018, 6162, 3879, 7179, 7413, 860, 5854, 9149, 3548, 2893, 8621, 4942, 5133, 7543, 5239, 1437, 5164, 1872, 7388, 6967, 8352, 2062, 7083, 5874, 5424, 4547, 6618, 4652, 7359, 3039, 2791, 2376, 9201, 6669, 9554, 6613, 7529, 5408, 5762, 1076, 8300, 4382, 6018, 3432, 1925, 1256, 4869, 7088, 3128, 2256, 4054, 1480, 4317, 1137, 7354, 9741, 5683, 3972, 4393, 3041, 7010, 7184, 5417, 6210, 3853, 4970, 2823, 1381, 378, 8585, 2456, 8677, 2967, 8474, 2108, 4891, 9730, 6976, 1978, 2857, 9231, 6032, 4337, 3548, 7168, 1690, 3288, 2851, 5662, 7681, 5892, 2671, 4864, 1308, 8881, 8716, 6278, 1703, 96, 6655, 288, 2552, 5331, 3254, 1025, 7439, 8144, 754, 4415, 122, 3611, 3646, 6154, 7947, 7193, 3321, 9637, 481, 6172, 5298, 8161, 2063, 7969, 3024, 3370, 6849, 1740, 9648, 8552, 1835, 6302, 8839, 4387, 1633, 2093, 5411, 9072, 237, 6165, 3486, 358, 9776, 7132, 6511, 7723, 4324, 9832, 7359, 4805, 6003, 2657, 2966, 8066, 625, 5990, 1436, 7474, 7729, 1083, 6026, 9564, 7385, 4865, 3950, 9018, 6957, 9360, 8090, 7193, 5525, 1575, 7551, 5300, 8707, 4062, 3022, 3031, 3893, 381, 7835, 9896, 3038, 801, 7962, 3663, 6790, 9397, 1136, 4518, 480, 7161, 4081, 7865, 2025, 8031, 6882, 8982, 7390, 4971, 6174, 2915, 6546, 3725, 8214, 5253, 7786, 1236, 8283, 1679, 1617, 6118, 1574, 4654, 6918, 9536, 8316, 3707, 8932, 9452, 8225, 9412, 6613, 2306, 7276, 8638, 336, 4158, 7619, 7726, 9129, 3793, 640, 5675, 7517, 8854, 927, 5303, 90, 9209, 6981, 1706, 5326, 8555, 6359, 2244, 8090, 4675, 5950, 7022, 4126, 4175, 6433, 739, 6480, 3709, 9376, 6816, 7866, 6995, 4541, 6994, 787, 5181, 2669, 8304, 4034, 3595, 3606, 4123, 2804, 586, 5829, 8130, 9140, 2188, 373, 7230, 6862, 6323, 4251, 988, 497, 684, 1727, 6977, 4392, 1102, 3792, 2257, 8096, 8332, 9251, 8883, 3512, 1919, 7186, 7546, 5514, 791, 1669, 8317, 1377, 7497, 6446, 517, 9684, 6818, 7746, 6546, 3141, 1997, 7534, 3637, 2680, 9260, 614, 7071, 361, 4405, 9328, 8457, 2737, 8579, 7339, 6249, 497, 4524, 3794, 6010, 5314, 5462, 4327, 6691, 2959, 772, 7207, 2642, 7590, 4952, 9188, 730, 6948, 6721, 4366, 9628, 5980, 4979, 6698, 6341, 9384, 6026, 4797, 2120, 4604, 2135, 8368, 5101, 6659, 2162, 1111, 1972, 7624, 5437, 8663, 582, 6208, 5869, 3224, 3797, 820, 2411, 4527, 7768, 9132, 8893, 7395, 5111, 3872, 4093, 1451, 3255, 118, 6248, 5375, 4722, 8382, 3743, 9822, 5040, 5904, 933, 7012, 3528, 6369, 5674, 4109, 2577, 1543, 7333, 6374, 2362, 9743, 900, 130, 8874, 9792, 7525, 3985, 3663, 1617, 5436, 6918, 1735, 1683, 2292, 6457, 65, 6034, 6279, 5105, 1938, 7211, 2117, 5465, 3579, 7791, 9574, 6156, 9333, 6906, 2529, 1695, 6648, 3428, 1824, 5522, 3220, 9348, 9507, 6883, 965, 4942, 3800, 2700, 6625, 6091, 9156, 6690, 2125, 5434, 1794, 4062, 2644, 3911, 9526, 6223, 1701, 9099, 2378, 1034, 6004, 4907, 2728, 2652, 8334, 4552, 8174, 1554, 3900, 7681, 8436, 4864, 2622, 2235, 7564, 9247, 8326, 6719, 5936, 450, 2152, 7730, 4511, 4796, 1640, 4037, 1018, 3340, 3135, 3396, 4373, 9139, 8302, 7101, 1791, 6636, 1652, 9964, 8189, 5552, 7644, 6625, 415, 266, 8860, 7979, 9513, 7185, 4697, 5448, 7634, 6849, 3178, 2145, 1644, 4817, 6181, 2662, 8157, 9316, 6058, 2529, 8454, 4359, 9630, 244, 995, 1281, 208, 9183, 6832, 7852, 5808, 7247, 8118, 4667, 5225, 7630, 1851, 9922, 3078, 9485, 6770, 6255, 1629, 8413, 1071, 7809, 1075, 9228, 7125, 7132, 1756, 5578, 1491, 1386, 5822, 2485, 2666, 6030, 1668, 9498, 3881, 7475, 6745, 1998, 2141, 1970, 9628, 3992, 1891, 2705, 3476, 8660, 8960, 5104, 7073, 31, 2913, 8148, 9258, 37, 5279, 1014, 5615, 6769, 2399, 1437, 9254, 5065, 7466, 921, 4563, 1347, 8395, 1307, 3345, 535, 3277, 2972, 4527, 5167, 5677, 8002, 3827, 4637, 3106, 900, 4667, 6019, 9047, 3925, 6056, 4326, 4938, 1670, 1095, 7337, 3107, 348, 2402, 572, 1268, 6964, 1918, 9663, 8271, 5263, 198, 1547, 8234, 4724, 6714, 3911, 2725, 540, 8547, 5830, 1440, 3214, 1848, 487, 7139, 7904, 4812, 2076, 9573, 5907, 9413, 2680, 6255, 1814, 3251, 7523, 8777, 5169, 7185, 7048, 431, 7382, 8594, 8665, 2105, 5307, 2576, 4830, 5847, 1123, 659, 7286, 4337, 2507, 7772, 1475, 411, 2584, 3551, 9983, 8490, 2963, 2663, 4744, 4776, 5914, 2266, 3553, 1082, 9450, 600, 1513, 6832, 9194, 178, 8936, 4500, 2754, 3765, 346, 3876, 4424, 7632, 8212, 6931, 5403, 9686, 7341, 7986, 3236, 7324, 6476, 6199, 9986, 1219, 975, 5899, 3485, 4527, 6981, 2935, 5127, 8494, 9766, 4321, 8672, 8702, 8820, 1425, 2467, 9166, 5300, 6891, 6797, 3512, 3822, 2200, 3198, 1163, 185, 6433, 8486, 6660, 2631, 8472, 7879, 3606, 4371, 1364, 8132, 1352, 4298, 3259, 9846, 4064, 7579, 8517, 2766, 6399, 9941, 5232, 5565, 5241, 2123, 2361, 8753, 5944, 4561, 1950, 7106, 4746, 8383, 5592, 1406, 1014, 4064, 9284, 4619, 8435, 647, 2750, 9787, 4945, 6009, 9632, 9009, 3588, 8148, 1774, 9986, 8089, 7006, 5550, 3329, 9128, 7911, 2081, 5072, 2471, 4031, 2178, 7216, 2413, 7770, 8621, 3426, 1834, 7905, 8044, 268, 8552, 794, 54, 3496, 6802, 9685, 2504, 390, 7833, 4278, 375, 5921, 1283, 5925, 9250, 410, 3835, 1331, 5482, 6306, 5361, 7659, 3521, 7773, 5429, 2142, 1198, 7262, 46, 9241, 7529, 8597, 35, 7583, 2093, 6837, 7268, 4597, 7226, 5100, 8874, 7600, 1021, 156, 3524, 270, 566, 7359, 1600, 6048, 3664, 6960, 3706, 7184, 4732, 9135, 9325, 5930, 6396, 9371, 5170, 3925, 7968, 5205, 1507, 60, 2041, 8774, 4657, 9266, 3874, 3531, 6865, 4894, 3687, 389, 5163, 4252, 7747, 6762, 300, 1410, 3722, 4006, 8594, 8453, 3140, 7919, 4382, 9535, 7290, 9552, 3459, 5257, 4756, 4966, 5317, 6797, 3739, 9973, 6062, 7612, 3503, 2927, 2506, 7190, 3316, 7668, 1441, 1062, 4430, 1741, 2472, 8151, 5746, 1066, 6604, 8885, 8985, 985, 8420, 6274, 537, 1878, 1530, 5293, 6843, 6846, 2089, 582, 6819, 8151, 8194, 322, 1077, 699, 7511, 4392, 8367, 8952, 5454, 2796, 692, 7926, 947, 6438, 8992, 7550, 5322, 7976, 8535, 3742, 4249, 9071, 5619, 5779, 4364, 2462, 2625, 6453, 3044, 9443, 4603, 1237, 9765, 5680, 1936, 7275, 72, 303, 6227, 5526, 3098, 6919, 3452, 4044, 3356, 2443, 1594, 8678, 418, 128, 2419, 4667, 9199, 8038, 445, 3562, 500, 3070, 15, 3543, 2513, 4617, 4780, 2277, 297, 6716, 9552, 368, 7018, 5778, 5894, 116, 2696, 9345, 4160, 6052, 1787, 5753, 4729, 2205, 5880, 7147, 6872, 5079, 5184, 7317, 8640, 5684, 386, 8655, 9226, 2898, 3271, 4005, 5174, 3568, 721, 4726, 3935, 7738, 503, 9828, 7853, 3199, 9172, 2012, 9251, 959, 7765, 3979, 3164, 3644, 1126, 35, 8723, 6310, 7351, 7363, 1993, 7737, 6017, 1218, 634, 9288, 5223, 5808, 2855, 5944, 533, 6789, 3681, 1036, 6617, 1534, 4235, 5789, 3545, 3485, 6748, 1310, 7464, 9911, 4954, 8589, 9946, 3676, 4899, 7296, 1038, 6891, 5032, 7054, 8109, 5666, 6341, 3332, 1474, 9195, 9275, 2006, 5984, 2955, 3042, 2601, 4488, 7276, 8389, 8033, 761, 5137, 9342, 8224, 5047, 4295, 6813, 4992, 7971, 1711, 2288, 9008, 8601, 7320, 6061, 6709, 2985, 2401, 41, 4458, 1596, 9315, 6464, 7579, 2269, 9505, 179, 6757, 6781, 8568, 4790, 7542, 3704, 4131, 5765, 8751, 8426, 2578, 3742, 6397, 4288, 6029, 5404, 2889, 3349, 1464, 9598, 6333, 3865, 9638, 791, 5461, 8952, 7255, 3039, 1221, 6760, 3218, 7977, 3541, 1785, 2766, 1082, 5489, 6897, 6847, 4239, 5323, 9424, 7980, 1719, 3712, 4009, 7122, 6601, 7357, 8586, 6198, 3690, 2451, 5836, 4481, 7911, 4788, 1735, 950, 6008, 8495, 4167, 3984, 2035, 5952, 6750, 3116, 1440, 3647, 9962, 5679, 8969, 9386, 3659, 688, 3097, 7668, 7810, 9697, 5025, 6396, 5895, 8714, 8846, 1731, 3195, 6757, 6518, 4930, 7706, 2525, 3424, 1873, 6509, 5458, 7824, 3259, 8573, 9264, 6905, 8535, 4943, 5874, 7920, 8601, 6561, 1017, 6268, 4371, 714, 1292, 766, 6609, 6, 9611, 8339, 3200, 6368, 4856, 8130, 4073, 7381, 1553, 5945, 3889, 7010, 3769, 7147, 5582, 3032, 4052, 4117, 7974, 9925, 2036, 6575, 6486, 3052, 2842, 856, 3766, 4134, 1622, 374, 4140, 1233, 8712, 7340, 7600, 3568, 5469, 1672, 948, 7021, 7616, 4837, 4030, 1384, 1984, 9612, 4416, 6035, 3728, 2390, 5960, 5763, 8964, 2445, 8815, 1805, 3301, 2581, 5939, 4922, 2954, 78, 6154, 1666, 7417, 3753, 5233, 2885, 5425, 6181, 9906, 3041, 1017, 3935, 4425, 3000, 3546, 8840, 9035, 7274, 1229, 4994, 3037, 193, 7439, 1851, 1998, 739, 4432, 7936, 5661, 7385, 8014, 1815, 9050, 5430, 5567, 4283, 8315, 992, 463, 8220, 4032, 1479, 2155, 8456, 4479, 5701, 7296, 3513, 2974, 8524, 8507, 6010, 8717, 5945, 7861, 714, 6684, 2292, 8649, 2344, 9677, 6662, 4158, 8726, 2092, 9725, 3008, 407, 716, 3471, 8627, 4747, 4949, 782, 3203, 9428, 6482, 498, 2940, 9456, 9022, 1446, 5466, 7738, 7391, 3327, 8451, 4074, 5619, 7100, 6418, 5295, 3761, 576, 4021, 5853, 301, 7029, 6260, 1016, 499, 4887, 5763, 5448, 5668, 8966, 4875, 2150, 9463, 7814, 1605, 8485, 9260, 7071, 6222, 6651, 397, 4673, 725, 6015, 1772, 7143, 1310, 5533, 7718, 5330, 1385, 8019, 2358, 7645, 9034, 2857, 2531, 4797, 8304, 8199, 3763, 3178, 348, 3226, 992, 1953, 1710, 252, 9023, 7931, 6902, 9420, 2603, 7627, 5434, 4375, 4769, 6744, 9907, 2487, 2073, 1292, 505, 4431, 8936, 9539, 7287, 1467, 4336, 5590, 9666, 8098, 8768, 13, 1323, 9759, 1966, 3033, 10, 989, 963, 6912, 408, 3566, 4539, 5842, 7941, 9307, 2585, 7847, 1794, 4657, 9138, 2299, 9087, 8074, 1837, 6374, 9540, 6173, 1963, 9205, 4271, 730, 9218, 5593, 489, 1183, 8626, 499, 2172, 9589, 7411, 2579, 3154, 1949, 8421, 1094, 1256, 1005, 8941, 3049, 5662, 8078, 5348, 4749, 6151, 7184, 1122, 5691, 3357, 3085, 4896, 7627, 3815, 4114, 3220, 4303, 5297, 1845, 4801, 7468, 1433, 2211, 47, 4587, 4160, 8467, 5681, 5415, 9471, 4621, 8464, 5132, 2699, 3811, 9881, 8850, 995, 1002, 4541, 4351, 4087, 9436, 1977, 7901, 3549, 5197, 2203, 8846, 7041, 7004, 6313, 8473, 9215, 6359, 3059, 3374, 4825, 8740, 8789, 4296, 3360, 7253, 9428, 6059, 1063, 9308, 4908, 2058, 310, 9448, 6408, 4396, 8884, 8385, 2296, 2432, 3581, 4499, 1278, 622, 1502, 7590, 9094, 717, 3949, 2153, 4090, 8773, 893, 2879, 3069, 4252, 131, 2496, 310, 1193, 1803, 5218, 3251, 2112, 4665, 9659, 6507, 3548, 8043, 8803, 5980, 1624, 3301, 7257, 2245, 4803, 4847, 1339, 5519, 8795, 3492, 9608, 7568, 4384, 2486, 636, 8636, 2617, 3131, 8946, 3810, 4934, 4163, 7060, 7045, 8828, 6718, 3552, 2375, 4761, 2354, 8355, 6384, 5655, 5612, 8629, 457, 459, 9968, 5975, 9254, 3459, 5582, 6821, 7842, 8068, 7457, 6477, 684, 588, 5423, 4494, 5521, 9585, 1553, 2566, 8412, 8270, 6118, 787, 3030, 8472, 9142, 9414, 4126, 4753, 8043, 4582, 5212, 8010, 556, 4465, 1468, 6138, 1285, 9310, 4206, 8742, 5787, 4890, 9329, 1209, 9383, 4850, 794, 935, 7416, 9205, 9205, 3533, 9992, 2235, 2004, 9133, 1649, 6129, 3886, 9691, 711, 9097, 7701, 1266, 3562, 9169, 7404, 4847, 8478, 1609, 3588, 4265, 6499, 2917, 5473, 5881, 7766, 6266, 6816, 5181, 5471, 6021, 8714, 5462, 8255, 717, 4595, 9904, 6846, 8481, 9595, 7556, 7578, 7295, 8822, 1139, 6463, 6226, 5985, 4941, 7835, 9573, 9205, 4333, 2489, 4678, 214, 254, 944, 7029, 5435, 6414, 3050, 4149, 1876, 1304, 4866, 6471, 1208, 1711, 4952, 802, 9267, 2529, 8096, 8089, 3668, 4559, 4314, 9652, 9499, 2148, 9224, 8704, 6481, 1712, 3381, 6694, 1966, 4324, 3723, 7401, 738, 6772, 1549, 2614, 8076, 6414, 9084, 9283, 8125, 4035, 84, 7392, 6564, 8180, 5480, 231, 2738, 9794, 9883, 2237, 1942, 9107, 940, 8422, 819, 4320, 5116, 2785, 8644, 8838, 185, 9382, 5609, 1734, 1995, 3684, 8148, 1079, 2967, 6273, 5114, 3050, 3664, 1677, 1230, 9144, 1908, 3967, 8937, 1791, 6203, 878, 897, 7143, 9300, 1715, 1463, 4415, 4499, 106, 3252, 4684, 9488, 8861, 6417, 1482, 2545, 4565, 2561, 5511, 837, 7674, 8561, 4500, 9351, 9790, 3643, 1259, 3756, 2580, 3049, 9959, 3458, 3945, 7102, 2757, 5660, 8564, 7172, 158, 8670, 424, 4842, 8157, 9285, 1258, 9639, 1829, 5823, 2200, 7339, 6659, 9873, 5899, 1159, 9224, 5688, 4802, 483, 9444, 7381, 3532, 9403, 839, 7477, 6505, 3596, 3136, 5068, 767, 3294, 3737, 1191, 8135, 1894, 475, 9393, 1532, 2303, 5215, 3731, 9642, 1874, 3604, 5540, 3032, 2828, 1228, 7833, 3311, 672, 5214, 6842, 75, 6052, 4318, 6579, 9647, 7453, 1647, 414, 747, 5383, 1605, 8881, 7277, 2079, 8273, 8809, 4382, 3488, 2539, 4023, 5361, 6143, 9563, 8393, 8971, 791, 6226, 2281, 1463, 1439, 9122, 1537, 7491, 3440, 8116, 7138, 892, 9762, 7552, 1638, 5145, 9156, 519, 2421, 1234, 8792, 1229, 5615, 2279, 3768, 9638, 7640, 9911, 9200, 6032, 8881, 9990, 2257, 1162, 1452, 3696, 284, 2989, 1187, 3723, 1104, 8324, 4615, 866, 5876, 6253, 6011, 5031, 6771, 8432, 6265, 5562, 9660, 1880, 7841, 3428, 1517, 5480, 3339, 716, 1512, 2220, 706, 3769, 3381, 2157, 7465, 3665, 5146, 8651, 7387, 6249, 6975, 2002, 7115, 2850, 8254, 3125, 7881, 5025, 1556, 4146, 586, 1216, 6025, 8427, 4644, 7542, 3907, 7982, 8258, 5418, 201, 8963, 9187, 3582, 1120, 6651, 7246, 6266, 5302, 4633, 2514, 2276, 6634, 9629, 5126, 4887, 2754, 3007, 9911, 4309, 7152, 497, 5525, 3177, 8924, 168, 718, 2830, 8150, 8976, 8248, 8351, 7939, 7434, 1932, 9059, 4085, 9178, 5324, 9386, 3810, 7838, 1662, 443, 7466, 6787, 5330, 219, 9793, 5240, 4528, 6945, 5737, 53, 121, 4660, 221, 839, 7490, 8370, 9814, 5738, 6720, 7753, 3172, 8652, 6811, 7256, 7829, 2134, 6642, 1639, 9972, 8303, 2081, 7437, 5089, 7411, 7656, 4882, 2650, 2184, 1826, 8387, 2236, 1947, 3047, 2456, 2785, 537, 826, 2599, 6274, 7546, 352, 9445, 6197, 7162, 6701, 4026, 9296, 3342, 5665, 9267, 1645, 7745, 6704, 6733, 5155, 4360, 1615, 7805, 6544, 3441, 6192, 8780, 5387, 9239, 1235, 8172, 9775, 2061, 771, 6048, 9606, 1122, 5493, 5803, 8284, 2193, 9829, 7580, 5535, 5493, 6847, 7179, 3238, 3551, 3912, 8393, 7911, 5526, 6198, 4454, 8967, 2389, 3233, 4354, 1627, 4468, 2525, 1402, 6529, 3296, 7449, 6134, 4418, 2942, 1937, 2702, 5134, 1765, 281, 668, 7258, 7128, 7847, 495, 679, 1758, 8887, 8589, 7284, 5084, 3042, 6250, 7473, 6275, 603, 9100, 743, 3128, 501, 7271, 6423, 7950, 3404, 841, 891, 5341, 3542, 6024, 7105, 3823, 6692, 4363, 951, 4538, 4857, 1629, 6295, 3744, 217, 3579, 8828, 3259, 9828, 6300, 9534, 430, 5400, 276, 3558, 5900, 7546, 9981, 3849, 950, 821, 4739, 6290, 4363, 763, 3395, 8186, 7455, 7757, 9136, 1993, 2614, 765, 8287, 6357, 982, 1866, 5185, 4240, 1693, 1484, 3774, 2123, 6883, 4049, 5680, 2783, 1594, 5660, 6631, 2544, 6481, 1370, 8833, 844, 2133, 2228, 9029, 9587, 9985, 8165, 1579, 2598, 8929, 9866, 8955, 9910, 1731, 4139, 4150, 3423, 5623, 7923, 5546, 2506, 1971, 1225, 5288, 3565, 6885, 1919, 6109, 3366, 3289, 4942, 4209, 5421, 7169, 3238, 5007, 7153, 1402, 6586, 9750, 331, 6451, 8705, 240, 8182, 2843, 4389, 1604, 8466, 2312, 7150, 971, 4283, 8374, 6259, 7848, 5259, 8177, 3956, 8625, 1465, 8897, 2834, 6886, 6065, 6071, 1893, 3217, 7473, 8478, 2967, 7803, 4928, 1672, 8042, 3109, 4514, 2431, 4713, 2979, 4742, 1862, 3950, 9024, 236, 208, 6871, 5495, 8385, 827, 4120, 9850, 9723, 6953, 6735, 5787, 3024, 8627, 9004, 496, 7105, 1971, 8298, 2032, 3642, 6340, 5141, 8156, 8770, 9854, 1135, 3512, 1716, 5084, 2536, 1952, 5292, 9407, 7447, 3676, 233, 1566, 3526, 9955, 8519, 261, 5742, 1542, 8887, 4746, 2037, 5991, 6717, 335, 8023, 359, 6674, 3164, 8515, 5444, 3018, 9649, 8955, 4733, 4733, 1491, 6685, 24, 898, 4131, 3700, 1130, 5697, 7225, 1085, 4215, 7486, 6827, 5756, 6372, 1573, 7793, 2363, 8289, 8127, 386, 8648, 4800, 3549, 7162, 243, 6567, 6810, 9198, 1299, 1542, 689, 7984, 1566, 1586, 2115, 5266, 2716, 7811, 2491, 3800, 2026, 9976, 626, 7782, 6348, 2199, 5574, 8710, 487, 3700, 9096, 9134, 8500, 2645, 6296, 8743, 9211, 3105, 7941, 510, 4647, 8629, 8493, 6213, 215, 608, 1478, 2930, 8419, 3968, 6729, 444, 3944, 7355, 8226, 291, 9553, 3799, 9001, 40, 7499, 8096, 9174, 5999, 740, 5469, 4742, 9950, 8574, 2682, 459, 3221, 1311, 8952, 9433, 1525, 9559, 911, 4454, 7977, 4879, 1183, 8421, 8822, 8538, 6646, 9112, 8091, 445, 8113, 8131, 7944, 6208, 7304, 3942, 6948, 2773, 8683, 6897, 1347, 1365, 7356, 4567, 2675, 6308, 3999, 4200, 5867, 4910, 8653, 3843, 9788, 9836, 2264, 8609, 8374, 8909, 7721, 6464, 9354, 5833, 4594, 7297, 2041, 1898, 1239, 8988, 4671, 9922, 5885, 6017, 1286, 3240, 583, 3961, 9548, 4582, 8160, 5414, 9492, 6813, 9257, 9279, 6648, 1520, 7888, 5022, 428, 5609, 1485, 9781, 1442, 6079, 7078, 3482, 7977, 8316, 2469, 2648, 8237, 8353, 8664, 9523, 1593, 9247, 3483, 1141, 3829, 1642, 6554, 3320, 8454, 5810, 2599, 5102, 7329, 486, 124, 7757, 6094, 1609, 7537, 7536, 7687, 4614, 1017, 5664, 2930, 3486, 8311, 1167, 1838, 6975, 689, 3431, 6221, 4171, 4571, 50, 5813, 1125, 3369, 4267, 6934, 5967, 9369, 4263, 6453, 9492, 2019, 2547, 1100, 9556, 82, 8787, 4170, 1099, 4450, 7099, 4584, 2761, 8265, 6422, 9736, 8954, 9852, 5957, 3124, 4423, 6006, 8937, 5547, 9375, 3203, 2480, 5342, 2571, 6743, 1794, 2063, 8761, 4341, 3162, 8317, 4423, 1948, 2486, 5521, 6398, 9585, 104, 9159, 7850, 6525, 8894, 6803, 6376, 4850, 9927, 799, 855, 8863, 6345, 230, 2066, 8825, 5571, 4637, 5567, 7365, 6699, 4328, 1705, 9860, 2644, 6127, 1807, 5129, 1648, 8205, 4713, 1751, 7363, 2562, 8275, 6256, 9365, 4651, 1106, 9291, 5449, 1960, 8153, 1794, 2190, 219, 618, 7760, 4855, 6185, 5125, 1553, 512, 6829, 1412, 3155, 2956, 3219, 8284, 4603, 1424, 2997, 6354, 8786, 5559, 4628, 5042, 4923, 9279, 6147, 4213, 4728, 8107, 2366, 6521, 296, 2585, 7139, 8056, 7439, 3324, 3180, 8991, 3835, 9, 403, 6990, 2965, 3621, 5274, 7568, 5044, 8270, 3921, 3830, 3828, 8549, 8871, 8751, 7828, 5018, 2964, 2555, 3124, 5330, 9076, 3420, 7914, 6215, 1476, 5352, 9538, 4655, 4343, 3373, 4663, 4745, 362, 7628, 8366, 5635, 5195, 3410, 3905, 9115, 7239, 7733, 7664, 6110, 6483, 5491, 1127, 9447, 8045, 4251, 4776, 7121, 7671, 2689, 3335, 9146, 8041, 2872, 3800, 2383, 6245, 8463, 7127, 6606, 6090, 5493, 2241, 1285, 8902, 6146, 399, 6140, 3878, 8062, 2250, 361, 3553, 3376, 9807, 1598, 7627, 4582, 8718, 5298, 7271, 2053, 4443, 5312, 4925, 8243, 7695, 1169, 6706, 4822, 7775, 2796, 314, 15, 4080, 9215, 6160, 4479, 5355, 38, 2541, 7604, 398, 6093, 980, 204, 7690, 8606, 4786, 6408, 3904, 2057, 8460, 8346, 7368, 3384, 6589, 5062, 4553, 3294, 9883, 2327, 6090, 196, 2342, 169, 9411, 8502, 4647, 4765, 8539, 7187, 2368, 8936, 3280, 3347, 9140, 969, 1953, 3925, 7377, 5856, 5981, 5836, 4202, 3349, 9220, 790, 8410, 3772, 4084, 8293, 6098, 173, 8489, 8439, 342, 7899, 6940, 4988, 2663, 5479, 2175, 5031, 4414, 5454, 8378, 3554, 6423, 330, 7479, 3799, 6186, 3459, 9635, 388, 6808, 8854, 1178, 5218, 2625, 5262, 3510, 8723, 5434, 1998, 7161, 5776, 9897, 4101, 763, 2559, 9579, 2938, 7589, 3993, 8391, 5966, 7547, 4814, 6296, 5025, 8613, 2482, 8484, 8247, 2869, 5291, 7100, 4047, 508, 9725, 9308, 4018, 8447, 4741, 6016, 5608, 517, 5912, 9709, 1279, 8471, 9288, 4217, 6060, 3280, 2608, 2026, 827, 7421, 8322, 5851, 6033, 803, 4334, 4279, 3672, 9625, 1379, 7718, 132, 1103, 7025, 4150, 9550, 1766, 165, 5157, 2282, 6077, 4865, 3561, 4547, 4152, 7777, 607, 7432, 384, 2632, 8258, 7805, 953, 4109, 3837, 1756, 8442, 8116, 5427, 8066, 9494, 3145, 8198, 597, 169, 2348, 146, 1935, 2512, 5302, 4217, 8589, 167, 7777, 3136, 4319, 5554, 3742, 1751, 5938, 6374, 9, 3742, 7326, 4117, 7578, 9081, 2559, 5694, 4508, 625, 5187, 7652, 8822, 5783, 7821, 1169, 5928, 9756, 3681, 1230, 3972, 2270, 1397, 1749, 5405, 5715, 7303, 9147, 7466, 3240, 5520, 7474, 6981, 2845, 1590, 4559, 1926, 4149, 252, 6434, 4773, 5439, 4086, 3595, 1221, 1906, 4764, 7149, 1662, 8445, 8378, 5634, 714, 9775, 7383, 6119, 5489, 4685, 5265, 2954, 7924, 784, 428, 4905, 3629, 2018, 9464, 5555, 6166, 9715, 1988, 938, 5153, 6073, 4533, 6374, 7979, 9296, 3522, 9640, 7740, 1900, 5273, 8454, 1674, 2655, 4572, 7163, 7340, 9836, 117, 5264, 619, 544, 168, 4248, 2561, 9632, 9802, 8726, 9346, 1790, 9664, 4499, 7862, 4196, 873, 5840, 3492, 4394, 5480, 1232, 6294, 753, 9685, 7968, 3408, 4256, 5130, 747, 4091, 5246, 6010, 4710, 5789, 6178, 8958, 8350, 5810, 8759, 7075, 5155, 548, 6739, 9654, 8410, 935, 526, 4250, 4426, 4920, 9730, 5658, 1214, 482, 5342, 9181, 3889, 9597, 4310, 4636, 3688, 9556, 646, 8398, 5345, 6824, 7355, 3694, 2633, 6113, 769, 7788, 6661, 7507, 7441, 5071, 8441, 7967, 9320, 2867, 2887, 9049, 8524, 4100, 9531, 3865, 3281, 3420, 3462, 7591, 8055, 7149, 7146, 8700, 5546, 2491, 5523, 2901, 6184, 8155, 9013, 6952, 5942, 5674, 4458, 3383, 745, 2899, 1350, 64, 5766, 4237, 9113, 4289, 8336, 8644, 8154, 1617, 2063, 1615, 9207, 117, 8764, 6353, 8817, 4310, 8843, 4340, 7210, 5026, 2495, 6223, 1978, 8437, 1897, 6436, 1820, 2641, 9334, 3169, 2705, 5099, 7405, 1817, 9388, 5741, 460, 7541, 7357, 2523, 9156, 6564, 2640, 7919, 2916, 1456, 2229, 1759, 5796, 9438, 6785, 8291, 5661, 8762, 6727, 7557, 5197, 8546, 197, 4530, 1715, 2901, 9629, 9119, 4718, 9016, 4860, 5178, 6557, 2217, 7700, 5712, 8781, 339, 3631, 1697, 1795, 5860, 3455, 7591, 5298, 239, 5881, 958, 9000, 2607, 8514, 4197, 1153, 8711, 8727, 2867, 1611, 8355, 1986, 6329, 7371, 6846, 1506, 3927, 9062, 9205, 9639, 7842, 9544, 3270, 9539, 1339, 9129, 2993, 8929, 4426, 3232, 4809, 5384, 2231, 7416, 3897, 6428, 8568, 2607, 5154, 1435, 4218, 3508, 3420, 546, 879, 265, 2052, 4806, 9327, 1257, 4444, 7169, 800, 7714, 6707, 2138, 6843, 9700, 1066, 1269, 2931, 5875, 6652, 5162, 3290, 548, 1589, 1857, 3155, 6742, 3292, 7373, 250, 6711, 7918, 1128, 6976, 9970, 5933, 6303, 1226, 377, 3471, 2025, 8091, 178, 4163, 4933, 9877, 5229, 6201, 2807, 1104, 2852, 7968, 4393, 3400, 9556, 6250, 6554, 6298, 9541, 3926, 6547, 6252, 1844, 7674, 3227, 1814, 3607, 9529, 3039, 3984, 3000, 5064, 2074, 3177, 9227, 7007, 3053, 4455, 3207, 5860, 5559, 6059, 3828, 9951, 9458, 3383, 6201, 6012, 9680, 5741, 9938, 6227, 1993, 1782, 3901, 5219, 3595, 7507, 4748, 6633, 1491, 7748, 1696, 3565, 924, 922, 571, 3977, 5377, 3777, 9836, 935, 9836, 3663, 886, 9293, 7046, 7086, 5305, 6726, 2827, 5242, 2952, 4820, 7023, 6853, 38, 617, 4360, 4786, 7250, 5850, 2533, 8946, 9414, 3457, 9868, 9984, 7433, 5245, 3761, 7269, 6180, 3596, 932, 7065, 2889, 7978, 4151, 8193, 4703, 6978, 3434, 7655, 1797, 457, 4507, 1835, 1074, 8867, 6620, 8324, 4716, 9153, 7269, 4130, 2609, 7136, 4113, 42, 2381, 7874, 7310, 8560, 1470, 8242, 5624, 4358, 6219, 9775, 2550, 921, 6752, 5984, 8576, 8549, 6441, 3083, 383, 7514, 1949, 7003, 5837, 6664, 6156, 3106, 794, 8764, 242, 4907, 8806, 2622, 2780, 6116, 1181, 4249, 4357, 6805, 8606, 575, 6580, 1156, 1496, 3332, 7140, 71, 1880, 3580, 3154, 2263, 1094, 5102, 9265, 6931, 1766, 5421, 36, 2559, 4184, 278, 7465, 2990, 2899, 245, 9105, 4080, 4493, 3461, 885, 3099, 4036, 7464, 4255, 5531, 795, 1395, 5602, 2675, 4974, 8755, 4937, 6068, 3857, 4202, 2998, 5622, 9622, 3034, 8181, 3806, 3311, 5646, 6795, 6210, 5890, 5899, 289, 383, 9360, 1173, 3482, 3395, 8637, 7737, 8926, 9431, 9131, 4527, 2105, 4104, 3282, 7042, 171, 7138, 1243, 3169, 2760, 864, 6202, 941, 4670, 9513, 6586, 1464, 5722, 2476, 7363, 6011, 2858, 6723, 7184, 6340, 117, 5820, 4076, 9042, 5250, 3206, 3569, 7355, 7310, 6850, 4396, 7481, 3988, 5638, 649, 6748, 6502, 6851, 7689, 1172, 6364, 4275, 2635, 2085, 6750, 9998, 8096, 9608, 6720, 5279, 5947, 6837, 1098, 22, 5879, 6347, 3228, 9448, 3702, 537, 6298, 8097, 8017, 285, 3735, 8666, 7033, 237, 5516, 4722, 1408, 1879, 8996, 4043, 3964, 5745, 4041, 2059, 5352, 761, 7338, 1299, 7598, 8435, 1321, 3476, 4782, 4548, 2923, 8483, 5084, 9220, 6580, 3101, 9505, 315, 1766, 6538, 551, 7282, 1259, 1959, 9161, 254, 6002, 3125, 5999, 42, 5184, 1351, 803, 2521, 2649, 8400, 955, 3969, 1875, 5736, 8517, 4798, 4219, 3601, 4018, 798, 6701, 3522, 1113, 8467, 60, 1664, 5748, 1318, 3622, 4908, 1572, 9624, 8033, 7570, 9665, 3216, 8920, 467, 5736, 1569, 8866, 6690, 5538, 741, 2426, 4054, 5538, 6644, 7654, 9555, 7442, 4355, 3077, 8554, 2821, 3136, 218, 8569, 4454, 3839, 3477, 6026, 3462, 1509, 3596, 3127, 4724, 2515, 3594, 459, 4084, 2460, 7149, 9621, 3200, 9575, 3675, 8738, 6219, 1328, 8293, 3661, 5683, 1370, 2215, 8503, 4506, 2432, 7071, 8959, 6271, 547, 4985, 9732, 2055, 8580, 2859, 6779, 1094, 6452, 7237, 5178, 8911, 4386, 4798, 2111, 3961, 8472, 848, 179, 9800, 9141, 3839, 5482, 510, 6053, 3985, 5015, 8485, 1055, 3974, 4755, 1602, 8958, 4486, 3656, 7537, 7345, 434, 8631, 3797, 7671, 3808, 2708, 2057, 8606, 4818, 6017, 7078, 5666, 6196, 6877, 4806, 34, 2359, 5316, 6087, 6343, 330, 4571, 7398, 4303, 9325, 8999, 3261, 3811, 2655, 797, 1156, 3089, 9427, 4952, 760, 3235, 7659, 2817, 1840, 2476, 8833, 8918, 8142, 5029, 5795, 2948, 5062, 8153, 8263, 1149, 4496, 8592, 5720, 1894, 2895, 5045, 892, 6155, 8856, 3547, 6952, 11, 6636, 6378, 4962, 7395, 9613, 2621, 212, 1453, 5097, 9044, 370, 3238, 4072, 6164, 6185, 9134, 4317, 4448, 283, 8812, 3040, 6003, 705, 5934, 1047, 1597, 2089, 9902, 5144, 9040, 9912, 1779, 5418, 4874, 9174, 5030, 7494, 9385, 6482, 2590, 8429, 6851, 5828, 2501, 3015, 2013, 1635, 7331, 6460, 1918, 6142, 9499, 7920, 6847, 5433, 8966, 8444, 7522, 8868, 3587, 6561, 8780, 5366, 1978, 3654, 4539, 7008, 1147, 3924, 3490, 3737, 2352, 340, 9565, 4852, 3355, 1577, 6487, 685, 8037, 8404, 6826, 7535, 6323, 3673, 2968, 5289, 2116, 489, 4156, 5703, 7049, 2936, 1068, 9027, 6589, 5607, 6035, 7736, 9530, 9524, 1473, 1881, 9864, 1037, 6733, 3218, 2613, 3219, 3902, 650, 1623, 728, 8184, 7945, 4400, 1152, 3234, 6516, 1640, 7390, 2218, 8689, 325, 3285, 7716, 6913, 8892, 3750, 4649, 8421, 3273, 6121, 302, 3137, 7157, 7034, 6354, 9770, 253, 255, 419, 1876, 983, 8603, 9821, 5382, 9754, 3054, 1898, 1394, 443, 4115, 82, 767, 7400, 7797, 7680, 6291, 1546, 2328, 4712, 4819, 8449, 5013, 7955, 5606, 2047, 4309, 5376, 2300, 4563, 5794, 4175, 5545, 4397, 3995, 927, 4151, 7048, 2824, 5544, 7491, 6939, 5626, 8258, 4339, 3422, 5937, 629, 4968, 8265, 5340, 9787, 6713, 352, 7742, 2319, 2399, 2050, 7694, 4698, 6612, 3488, 8872, 2157, 7884, 2867, 3084, 2035, 9915, 5908, 7578, 7405, 2847, 3203, 5662, 7185, 6625, 1599, 7813, 1592, 9863, 3153, 1379, 6576, 3505, 9120, 8894, 5903, 1169, 6588, 600, 7781, 75, 9472, 9938, 7959, 2338, 3022, 9993, 2252, 8929, 7570, 9656, 1775, 773, 5318, 8959, 7397, 6916, 6772, 8989, 6779, 9924, 367, 3354, 3429, 9486, 2248, 9331, 655, 8835, 9930, 8435, 8909, 9402, 8373, 6868, 1739, 1394, 6860, 3991, 322, 4429, 3647, 2097, 5201, 8964, 1056, 2598, 5879, 7827, 1586, 2657, 7751, 1953, 6011, 1179, 1438, 8258, 510, 2093, 7093, 440, 527, 6002, 9841, 8899, 2869, 1580, 292, 9728, 5570, 614, 4157, 9216, 2710, 9358, 8179, 3766, 1955, 4058, 1592, 3541, 6715, 9343, 5493, 2725, 522, 6931, 983, 1031, 9023, 8076, 1470, 9550, 4077, 1310, 8449, 6946, 2889, 8741, 6674, 8459, 9354, 830, 7674, 2064, 188, 5853, 5829, 2142, 9910, 7421, 5683, 6624, 6764, 1175, 9349, 7285, 8106, 332, 8315, 7128, 8407, 9785, 6678, 2484, 1095, 5126, 9429, 3984, 3866, 6102, 2442, 3220, 6932, 115, 5283, 7119, 5968, 1112, 9260, 5878, 8533, 4943, 2501, 5296, 6117, 1850, 2581, 4222, 2181, 896, 1350, 587, 680, 8027, 3071, 1774, 3153, 2499, 5758, 7018, 8601, 8199, 237, 5532, 8314, 5520, 2650, 4281, 6632, 1910, 158, 5164, 6852, 2659, 460, 2968, 4509, 3040, 7190, 6689, 3935, 8540, 7276, 4615, 6567, 346, 6389, 9719, 2845, 2146, 6736, 1445, 344, 6973, 6976, 8658, 2492, 9625, 2938, 9123, 1534, 3096, 4287, 8386, 5755, 4746, 1354, 263, 7786, 8543, 6952, 1721, 7083, 4228, 6335, 3649, 4574, 2724, 3367, 7418, 4869, 103, 8862, 5212, 7075, 5838, 3870, 9567, 5463, 6807, 8690, 6997, 9903, 2976, 5382, 5657, 7722, 6735, 5920, 5507, 5278, 2871, 7227, 2360, 7098, 3562, 6009, 1671, 6285, 9375, 9089, 1153, 9478, 7951, 6365, 6553, 3788, 235, 6119, 9250, 7042, 4808, 6246, 6944, 7784, 1628, 2601, 5505, 8362, 8520, 1011, 3639, 1391, 8238, 5999, 8489, 1800, 2007, 159, 8084, 1382, 9248, 9237, 859, 7198, 5602, 7411, 985, 5836, 3530, 235, 2877, 8337, 6481, 9821, 6120, 8108, 2421, 1624, 6469, 941, 2635, 108, 2331, 873, 6106, 820, 2672, 8112, 978, 756, 9493, 225, 9993, 352, 7422, 5594, 7762, 8407, 1430, 1291, 8641, 4307, 9628, 5122, 4128, 5748, 3229, 6549, 7371, 9698, 7489, 6, 9805, 9820, 878, 5910, 639, 3549, 4022, 1617, 4305, 3514, 1842, 4297, 3865, 9264, 9891, 1627, 7670, 1321, 2918, 6311, 5627, 2545, 1433, 9755, 8292, 4661, 6303, 5663, 4358, 3791, 5668, 4163, 3611, 6546, 72, 4249, 95, 4094, 5866, 4399, 7607, 7707, 8696, 1472, 6970, 8586, 3099, 4640, 9906, 6016, 951, 5533, 8560, 2383, 5287, 6852, 7044, 1589, 2515, 1402, 5380, 8183, 5564, 8990, 4728, 5636, 3239, 4823, 9729, 9105, 9221, 7336, 6811, 7916, 8808, 3781, 6502, 1906, 8421, 6408, 7921, 9372, 1940, 6481, 1755, 7227, 3333, 8798, 8816, 5847, 199, 4195, 4029, 5763, 3185, 8757, 1398, 6424, 3579, 1126, 5528, 2800, 8462, 2339, 715, 7269, 6120, 7217, 9174, 4540, 3624, 7095, 3912, 5563, 3576, 5666, 2790, 6908, 4464, 1605, 2755, 4662, 5800, 6783, 424, 8984, 5540, 1822, 5408, 9118, 2948, 936, 1917, 1409, 3274, 2632, 8678, 9394, 9848, 7852, 3934, 3471, 4946, 7845, 9034, 8522, 3511, 1823, 5430, 7974, 3428, 8184, 2636, 9227, 4967, 3059, 8211, 506, 4881, 3618, 9624, 7828, 4553, 1540, 9236, 7827, 4172, 7913, 7220, 4019, 5764, 1153, 7490, 710, 8998, 6524, 9231, 2508, 8346, 4661, 481, 1773, 2844, 3116, 999, 7811, 6175, 9210, 8317, 1055, 2827, 7940, 8882, 7380, 9479, 8118, 5207, 3651, 6031, 2426, 7669, 1794, 3579, 5159, 2504, 2576, 1682, 1735, 5083, 27, 6395, 5564, 1800, 9239, 8679, 2799, 7049, 4854, 2008, 5365, 5908, 4835, 3304, 4790, 2214, 2783, 2907, 7420, 6433, 8937, 9846, 4102, 731, 3424, 9260, 3235, 6000, 941, 4969, 1083, 968, 1364, 6646, 2768, 602, 5325, 5567, 7651, 178, 7575, 3015, 6085, 2409, 6319, 874, 4623, 9102, 3781, 2043, 5535, 2717, 1888, 9637, 3448, 5312, 8896, 6682, 1312, 9837, 1650, 2394, 805, 3014, 9040, 3573, 3615, 4364, 9139, 1265, 4542, 6713, 4280, 626, 9122, 599, 1500, 3744, 9701, 5280, 5787, 5235, 7997, 7674, 4871, 1444, 2986, 3767, 8125, 4298, 3604, 9775, 6691, 4409, 2788, 5731, 7982, 6403, 95, 7120, 7668, 4636, 3833, 1947, 5262, 2955, 2546, 6761, 6699, 2246, 2041, 2485, 7480, 38, 159, 2351, 1482, 3144, 6118, 9607, 7442, 9722, 9381, 4133, 4130, 2169, 9863, 2111, 8571, 9957, 9231, 6238, 4592, 3064, 8185, 9853, 6018, 731, 6614, 2716, 2976, 8655, 5200, 456, 8692, 5358, 2807, 173, 8502, 8924, 9779, 5943, 8645, 9160, 75, 2775, 1328, 9938, 4885, 9899, 9894, 4116, 6137, 4486, 7179, 4322, 4339, 3197, 5052, 953, 5912, 8027, 9607, 1112, 8482, 8299, 6470, 1288, 8472, 4972, 212, 8250, 914, 8856, 7410, 989, 1631, 8738, 927, 6515, 8636, 820, 631, 4773, 5306, 7809, 9094, 9645, 1005, 4145, 597, 6917, 2171, 203, 8029, 653, 8502, 4498, 1941, 6973, 9469, 2153, 5223, 383, 1008, 2632, 1372, 2639, 1369, 2298, 9154, 5, 3118, 9784, 4777, 8423, 7593, 3870, 8068, 8598, 8014, 8664, 5514, 185, 8867, 3542, 838, 7368, 8040, 2778, 4340, 7508, 4930, 9562, 7891, 5938, 2194, 9262, 8576, 3562, 1559, 7729, 3566, 4677, 7513, 8343, 3099, 5105, 2212, 1166, 3702, 226, 9830, 9216, 410, 8696, 2757, 1247, 6064, 797, 4025, 403, 8304, 8954, 9965, 6195, 4892, 2158, 5456, 3468, 5720, 7015, 1197, 9286, 1691, 8709, 7628, 4790, 3813, 9840, 5956, 7515, 65, 5785, 6730, 474, 4481, 9487, 1721, 544, 283, 5745, 947, 8587, 4699, 912, 4781, 9591, 3070, 237, 3058, 8789, 7251, 4254, 8075, 8942, 2963, 5703, 3731, 6776, 5542, 9687, 4290, 5606, 5472, 1020, 6080, 9953, 506, 7800, 496, 788, 3545, 1443, 9375, 8243, 2354, 4155, 7833, 5423, 4391, 891, 4212, 1642, 5145, 2286, 583, 8107, 7989, 4314, 4883, 3530, 4001, 9172, 9136, 9472, 191, 5216, 9424, 697, 3016, 9920, 1484, 6560, 1362, 858, 4803, 3715, 5013, 2636, 9138, 9404, 3526, 3349, 1045, 8670, 5635, 1628, 6777, 3623, 5941, 1659, 7152, 9941, 831, 6288, 9413, 1022, 1503, 8837, 1718, 4518, 8756, 3202, 1078, 117, 4060, 5880, 3832, 9073, 8515, 2969, 8476, 2040, 6318, 9521, 710, 1952, 1148, 7487, 5574, 7088, 9146, 2725, 7029, 9977, 9013, 6442, 999, 515, 5278, 2716, 5033, 4033, 5918, 6110, 4150, 9978, 1989, 7982, 9051, 503, 950, 7526, 2543, 7268, 7046, 3253, 9219, 8193, 740, 4792, 5281, 9885, 7517, 2310, 9862, 6529, 8751, 860, 7043, 4028, 3576, 2075, 8061, 9493, 8185, 2210, 9471, 173, 192, 8521, 676, 1141, 6047, 3219, 8408, 3093, 6472, 7627, 1286, 7211, 2418, 6567, 7096, 9934, 8876, 6957, 6462, 7627, 7816, 3505, 1655, 1391, 5580, 9715, 884, 3764, 1925, 355, 3937, 2116, 8875, 4613, 3257, 4922, 7831, 1665, 8014, 4303, 9291, 9300, 1513, 1709, 5866, 8608, 1642, 4742, 5564, 8104, 2368, 3380, 1609, 4023, 4770, 7189, 3738, 5653, 953, 5662, 6008, 4889, 7778, 4883, 9502, 1035, 9804, 7333, 2700, 7818, 1635, 1991, 7117, 3147, 3699, 2983, 1755, 5341, 7724, 7319, 3445, 91, 698, 5054, 4114, 5467, 2242, 7851, 1120, 3194, 3512, 7128, 8083, 1290, 2010, 7584, 2325, 1813, 4916, 5024, 9631, 6550, 7015, 6748, 9697, 713, 9730, 1451, 6054, 7453, 8769, 9498, 7544, 9467, 4551, 1657, 4934, 6793, 9507, 6053, 9986, 3019, 3180, 8068, 4309, 5190, 5651, 6633, 7002, 566, 1657, 6633, 7116, 8671, 3380, 6812, 9384, 3109, 8263, 5437, 561, 7032, 4935, 8105, 6498, 9486, 9761, 1431, 6278, 9268, 7484, 6264, 2287, 664, 4331, 6595, 5853, 9982, 3228, 2854, 548, 4884, 9487, 7663, 3555, 2866, 4475, 2938, 5975, 2737, 8375, 6535, 9768, 3310, 4640, 6265, 2795, 4401, 7695, 9073, 3668, 5178, 5336, 5954, 5841, 9667, 2549, 1693, 9648, 5776, 4547, 195, 660, 4034, 7857, 4214, 6899, 2331, 7152, 2873, 5068, 5527, 9408, 4835, 8836, 4047, 1099, 1631, 8447, 8794, 704, 2115, 3971, 6039, 8069, 9812, 5705, 617, 1505, 5353, 6393, 6052, 5547, 7052, 85, 3404, 1266, 6983, 5735, 8418, 9856, 802, 3944, 9263, 5636, 2780, 3310, 6735, 4410, 1757, 5528, 5113, 3872, 9499, 1152, 1940, 9311, 6857, 2557, 815, 2209, 8949, 6867, 7756, 6001, 6951, 1159, 7266, 3934, 6893, 5683, 3789, 7694, 9627, 3052, 3330, 2406, 6362, 64, 6816, 8119, 5592, 1929, 1990, 5091, 3080, 3930, 4401, 9937, 6487, 5216, 2145, 5435, 2082, 9901, 1435, 9032, 1059, 8701, 2966, 7952, 4384, 6754, 5646, 4010, 9806, 8975, 6415, 6167, 9039, 3231, 4285, 4631, 5159, 6275, 9721, 8238, 205, 4122, 8175, 6691, 9337, 320, 2125, 1419, 220, 3560, 450, 1278, 2261, 3415, 9230, 6644, 169, 4875, 654, 9974, 3849, 7069, 6141, 2888, 299, 426, 7518, 5457, 6700, 7239, 3695, 6905, 1360, 1869, 3595, 696, 2188, 5720, 2114, 2408, 9280, 2564, 3685, 1540, 5979, 2914, 8183, 6148, 7789, 8837, 6121, 1637, 5905, 2262, 4525, 6203, 2687, 2043, 1660, 9387, 9281, 5354, 6291, 641, 7223, 9885, 1336, 9411, 5604, 3450, 1818, 4883, 6014, 5503, 6422, 1993, 8417, 4605, 8140, 6205, 3442, 4260, 7842, 9346, 6521, 2366, 5548, 9208, 4409, 7208, 8594, 3689, 2561, 4884, 4329, 9784, 4768, 5665, 9194, 372, 9115, 1012, 5255, 5129, 6514, 1677, 7121, 4930, 6282, 5260, 1134, 9723, 9520, 8976, 9068, 6041, 1341, 4616, 5248, 5750, 1823, 3841, 9438, 4384, 8725, 3767, 4167, 3493, 9432, 3361, 3864, 8547, 4372, 9118, 3675, 886, 794, 795, 5815, 7075, 6054, 6949, 6797, 5574, 5925, 5865, 1614, 7265, 481, 6862, 3015, 2303, 702, 2452, 6686, 9426, 6219, 853, 2918, 5651, 4214, 6782, 4197, 8585, 5900, 7871, 9470, 6693, 8665, 5285, 3768, 4719, 2234, 565, 292, 8158, 6430, 1906, 5423, 6910, 8767, 8437, 9212, 9469, 889, 5898, 8895, 7108, 6751, 1813, 2758, 964, 8594, 6954, 9549, 4494, 4824, 9019, 1186, 3489, 4304, 4954, 8208, 6537, 5519, 8500, 4695, 1948, 405, 118, 8857, 9172, 8555, 8069, 8640, 9443, 3967, 7535, 6551, 717, 9347, 9308, 1681, 7941, 6262, 1229, 2434, 1086, 248, 3620, 4574, 4551, 8573, 2781, 1088, 4092, 1280, 5783, 6039, 1685, 5900, 4896, 856, 4454, 2965, 9496, 3897, 6931, 7030, 448, 7648, 6377, 9755, 9328, 4317, 6017, 557, 6750, 7102, 804, 369, 1675, 5354, 8942, 4456, 6441, 3033, 5736, 2224, 9072, 7420, 8123, 3968, 8276, 2577, 6932, 7771, 6474, 3862, 4801, 6921, 1509, 1177, 6676, 837, 5493, 2692, 1393, 2243, 9793, 2196, 2612, 1468, 7550, 1554, 5924, 3991, 4587, 1659, 6214, 3658, 9079, 4337, 7626, 7354, 6913, 4557, 5125, 3386, 8419, 9926, 306, 9928, 1102, 6982, 764, 6595, 9673, 2157, 8838, 9466, 4353, 1449, 934, 1902, 3002, 6857, 5893, 7588, 8516, 2106, 1246, 7594, 6442, 8871, 4948, 3355, 3428, 72, 6741, 1846, 9998, 7046, 1773, 1099, 4027, 2536, 7694, 3700, 4692, 6532, 3165, 9044, 7981, 4098, 946, 982, 955, 6838, 8570, 9470, 8944, 9816, 7064, 5386, 8687, 2011, 8740, 2114, 2082, 5480, 3959, 2080, 2526, 5732, 3179, 6553, 8267, 872, 252, 2959, 7404, 3417, 2003, 5384, 7515, 2949, 6366, 8469, 9786, 4936, 7939, 8730, 4751, 5002, 4116, 3438, 7012, 2855, 5552, 9094, 8335, 9510, 1173, 861, 5242, 4351, 7414, 3509, 5223, 7666, 6468, 2627, 1082, 8470, 8010, 8597, 1419, 4375, 7066, 1204, 9310, 5004, 9934, 4061, 6, 4049, 7498, 7018, 6904, 3049, 6111, 5239, 2559, 7284, 6100, 7801, 1635, 3513, 1309, 6858, 1178, 7776, 9484, 2260, 6246, 7493, 856, 7664, 1868, 7921, 8868, 1178, 2925, 8801, 5238, 2930, 2850, 2736, 9947, 9753, 5785, 6058, 4992, 8344, 3342, 1091, 6144, 4977, 4603, 7452, 1835, 5781, 5228, 1318, 8040, 1473, 8811, 8895, 9136, 679, 6815, 8003, 1856, 9740, 6804, 7094, 2669, 9653, 9829, 2616, 9406, 5613, 8674, 4397, 3957, 2016, 5487, 100, 6993, 90, 7552, 8827, 5870, 2780, 145, 3909, 4252, 8956, 2803, 3388, 9634, 9618, 1391, 1490, 9358, 8194, 8583, 2027, 7847, 8411, 4642, 7252, 4024, 3316, 1649, 7980, 5332, 7136, 8080, 2324, 7225, 5632, 1150, 3094, 8411, 1294, 7003, 2663, 249, 9806, 6050, 9883, 9424, 7440, 1372, 8781, 5634, 9954, 807, 3480, 8365, 5449, 732, 2388, 8764, 2380, 368, 4095, 9515, 8448, 6418, 6739, 4080, 7568, 9833, 2490, 8861, 6836, 5153, 9110, 6641, 1202, 8992, 6064, 8641, 364, 4845, 4274, 317, 5651, 7754, 8681, 1099, 8485, 1069, 9863, 865, 1437, 3958, 379, 9885, 376, 7118, 3965, 7943, 6951, 6454, 6804, 3786, 1607, 5913, 427, 2808, 4905, 6491, 1449, 5268, 1335, 5723, 5585, 6985, 3476, 4266, 8084, 1961, 5335, 7947, 2825, 6772, 1904, 3203, 6657, 2280, 321, 621, 222, 7271, 7075, 7026, 1057, 8681, 2939, 1483, 1488, 7843, 7973, 2936, 3111, 9307, 8659, 8696, 6292, 2134, 2961, 4376, 4094, 8296, 2322, 6919, 5067, 4226, 121, 1723, 6505, 442, 2343, 6727, 7713, 9417, 3752, 8769, 8097, 6690, 252, 9585, 4533, 8225, 2521, 7644, 7532, 1179, 6339, 3823, 3313, 9300, 8199, 7406, 7595, 520, 4325, 2661, 4745, 4445, 4384, 1249, 4887, 6726, 7976, 2599, 6143, 1727, 1368, 4240, 8417, 1619, 3824, 2950, 9843, 6345, 593, 7375, 7523, 6932, 1197, 835, 6231, 9396, 8241, 3826, 9915, 2565, 6486, 4660, 7010, 869, 5909, 1897, 7595, 3884, 4495, 3738, 5611, 5862, 7977, 4027, 7481, 1801, 6977, 7324, 8145, 7570, 4698, 5668, 4501, 5895, 6503, 732, 5290, 4743, 4557, 5205, 7308, 1043, 9864, 4318, 1912, 5772, 6214, 9506, 9655, 708, 3244, 5266, 6570, 1220, 9293, 4051, 3021, 6269, 1375, 1166, 3838, 6072, 6833, 8339, 1967, 3335, 9071, 7257, 8078, 3628, 2461, 5386, 4670, 2325, 9703, 6582, 8096, 5917, 6088, 7751, 6624, 9331, 3016, 3194, 550, 2308, 7244, 3571, 8577, 8619, 4736, 2414, 4690, 1568, 753, 6657, 4903, 9824, 3913, 2981, 3451, 6374, 8367, 8121, 8698, 8069, 4703, 6794, 3985, 790, 4544, 609, 120, 7560, 3803, 670, 9867, 1047, 4240, 8443, 9665, 8975, 857, 4355, 543, 1610, 1011, 5445, 1434, 4924, 8426, 4885, 1298, 6792, 3005, 9995, 4861, 7708, 6788, 8846, 8497, 1332, 9455, 8616, 8891, 3257, 9285, 8758, 4303, 3525, 7201, 3968, 2499, 8058, 8322, 3041, 9667, 9333, 8486, 1101, 4257, 6911, 5985, 5554, 3703, 8990, 5548, 8564, 6697, 2336, 7409, 5193, 3668, 6863, 3808, 2558, 119, 3093, 1315, 4422, 6617, 8516, 8389, 9116, 6573, 6711, 2156, 6240, 6043, 642, 7340, 299, 7553, 3324, 5852, 1255, 2313, 1400, 9818, 9009, 3736, 7227, 4201, 7403, 4089, 8009, 9961, 4208, 1102, 1275, 8630, 7719, 9790, 7019, 6834, 6363, 3729, 8990, 2602, 9772, 9631, 9941, 71, 7184, 3264, 5922, 8438, 5577, 7322, 8256, 4585, 1058, 5482, 8786, 8460, 9571, 6794, 8420, 3778, 7896, 9695, 2408, 5614, 9485, 9426, 2448, 5847, 3154, 1437, 8448, 2926, 1068, 8389, 2996, 8251, 1653, 8918, 6689, 7229, 6240, 4944, 1814, 7297, 426, 599, 5756, 9996, 7392, 4176, 3774, 5288, 3871, 6181, 901, 3355, 5606, 3348, 9202, 8760, 4785, 7650, 1685, 5853, 6038, 4680, 4104, 7691, 3598, 792, 4919, 9837, 5736, 6732, 7133, 6161, 7331, 2889, 6157, 4723, 7065, 9930, 10, 935, 6110, 910, 4289, 1715, 4258, 3491, 474, 9043, 1140, 2159, 4895, 7178, 6839, 8999, 4868, 436, 9790, 9787, 273, 5526, 6519, 7405, 1687, 3849, 293, 7843, 8571, 7357, 7773, 8580, 8292, 3882, 9490, 2581, 5597, 3747, 6071, 6071, 2790, 7210, 8229, 7684, 4388, 5068, 6683, 9255, 5503, 6473, 9042, 5775, 1998, 5560, 3180, 3685, 9409, 3473, 1528, 7980, 830, 9300, 6559, 9121, 3181, 6048, 1701, 8777, 9795, 7771, 4847, 2584, 4981, 3076, 268, 9368, 8143, 6950, 8623, 3646, 3423, 7665, 9421, 5420, 3225, 2600, 9105, 2633, 6073, 632, 612, 6902, 9931, 7171, 6022, 3112, 3219, 7722, 1888, 3013, 5493, 6735, 5597, 474, 9811, 5865, 9841, 7954, 2814, 8464, 1599, 6237, 6128, 1020, 1656, 9353, 3619, 760, 1985, 9692, 1392, 2597, 6593, 1322, 9767, 2614, 4433, 2985, 336, 6321, 5998, 5829, 3056, 1595, 6302, 2867, 7459, 6143, 820, 273, 4607, 2418, 6509, 734, 3437, 8165, 87, 7056, 8925, 2071, 6747, 316, 4668, 3340, 1638, 4435, 5953, 6071, 7420, 6289, 2391, 3417, 2118, 5447, 5011, 8419, 8313, 2470, 4562, 9132, 2742, 9168, 1550, 9250, 9902, 4987, 7414, 9988, 2042, 6338, 2059, 8789, 6653, 6726, 2128, 8290, 1160, 8081, 4360, 8579, 4370, 6751, 1996, 6487, 2198, 7007, 4906, 511, 9476, 9468, 9643, 2217, 8635, 1193, 1467, 8536, 6179, 8880, 8524, 8221, 5218, 582, 7010, 1870, 7307, 9137, 160, 8467, 7218, 4520, 7045, 1587, 1271, 9041, 8074, 3469, 6047, 2980, 3979, 5522, 2448, 3622, 7739, 1082, 4814, 9205, 9618, 992, 8085, 8141, 9213, 3302, 8723, 6222, 5172, 6029, 5358, 5331, 4496, 2576, 9851, 1541, 4163, 1122, 581, 2237, 4591, 6628, 5216, 8570, 2150, 7663, 2191, 9888, 8745, 7004, 9093, 8363, 7996, 7177, 6504, 7208, 478, 5226, 3430, 5649, 1255, 8788, 980, 5750, 1363, 831, 7290, 5525, 1952, 7871, 7761, 6542, 4498, 2977, 5111, 6647, 640, 7302, 6534, 9385, 4306, 5626, 7747, 2301, 2802, 4250, 9509, 3280, 9476, 2939, 8928, 730, 1726, 9907, 6479, 3088, 737, 3769, 8613, 2689, 1639, 6374, 9231, 6136, 9351, 4342, 2783, 9990, 1643, 9316, 9375, 5948, 4942, 7122, 8249, 7744, 1371, 7758, 1023, 847, 696, 9951, 1576, 2421, 9858, 8055, 5509, 595, 1824, 4122, 3283, 3462, 495, 2514, 9598, 9846, 6855, 2380, 9836, 8498, 1696, 9210, 4445, 6638, 6331, 2694, 4382, 7702, 451, 5404, 8548, 1147, 5355, 124, 3568, 5212, 8179, 9077, 5806, 2, 3198, 9089, 3464, 3693, 1602, 3062, 3538, 8457, 5441, 3373, 6954, 7137, 2582, 1398, 3774, 8913, 4092, 8156, 6614, 4542, 3560, 5162, 5689, 8914, 5285, 9256, 4126, 3463, 8332, 9931, 3465, 1529, 9020, 6928, 5222, 621);
tab9830 : array[0..9829] of integer = (9989, 8759, 9077, 5430, 2132, 6030, 2567, 4714, 7428, 6341, 3626, 1520, 4496, 240, 6062, 8055, 5401, 1750, 6968, 686, 1005, 1093, 4149, 9337, 1024, 7613, 866, 43, 4541, 6087, 664, 4529, 4846, 9741, 9959, 6978, 5771, 2525, 1691, 3198, 8865, 5317, 4718, 3360, 5556, 779, 1415, 957, 2528, 8382, 1642, 3533, 9475, 5790, 2869, 499, 3403, 3735, 541, 7943, 9821, 1205, 2472, 4667, 945, 2431, 1644, 6715, 4955, 3335, 9913, 3820, 8651, 4630, 7180, 4206, 5408, 8594, 5163, 7935, 6976, 6805, 1467, 6451, 2595, 4336, 6949, 5997, 8070, 7490, 3940, 7891, 8694, 6411, 2558, 9638, 8842, 4202, 6353, 3797, 7536, 6265, 7616, 6186, 894, 4796, 392, 6301, 3389, 5554, 4236, 365, 2358, 5703, 6816, 4952, 38, 3764, 949, 8108, 1254, 4888, 5999, 9947, 1299, 8557, 9585, 140, 2758, 5937, 3936, 293, 2201, 1552, 6478, 3095, 6347, 6870, 9396, 9736, 2424, 3631, 101, 4781, 9334, 6916, 9733, 9372, 680, 682, 7479, 1933, 5570, 3478, 1880, 6868, 2034, 1464, 7008, 4791, 7401, 944, 5083, 9602, 2496, 1561, 2696, 8843, 8431, 2092, 8578, 854, 5722, 8679, 5634, 5055, 5594, 5367, 4426, 6273, 6049, 1905, 8206, 1618, 5383, 85, 8486, 7416, 1549, 5494, 2207, 8950, 6438, 7290, 8551, 8933, 8851, 1247, 7776, 7281, 3338, 6354, 8134, 9060, 5032, 3768, 4114, 625, 9135, 8540, 6898, 5183, 445, 5103, 6800, 5827, 5188, 5286, 3243, 6736, 779, 5450, 5686, 7216, 2740, 4236, 6149, 1590, 5483, 3925, 8870, 8820, 278, 7004, 7879, 5309, 771, 1993, 5933, 9905, 533, 2831, 5088, 978, 7933, 1888, 6805, 3121, 7173, 47, 9857, 7951, 5497, 5542, 5167, 8236, 9778, 1316, 9825, 5260, 5240, 8695, 4080, 5517, 5698, 1958, 826, 6469, 3951, 6759, 6374, 4483, 9589, 1461, 5461, 7522, 3348, 2265, 642, 520, 2311, 498, 8471, 7808, 6039, 3638, 6043, 5816, 4954, 5868, 1076, 194, 4563, 5155, 5711, 260, 7113, 6536, 6729, 1063, 3294, 3102, 5546, 2882, 4562, 1006, 403, 7909, 3270, 1045, 8429, 5581, 1542, 6899, 3388, 7581, 537, 9431, 3396, 5490, 5299, 4472, 5683, 9861, 9626, 1394, 120, 6738, 7929, 6848, 7800, 1223, 9949, 3346, 4104, 4511, 4351, 4507, 2419, 7621, 5551, 847, 3201, 7092, 7746, 6589, 4672, 8283, 6020, 8068, 3772, 1318, 2540, 9455, 1178, 2165, 849, 1298, 8903, 8777, 8146, 6703, 9999, 8094, 48, 4103, 2605, 4399, 8609, 5023, 2019, 4160, 5870, 5220, 1252, 3616, 1809, 5924, 1898, 7828, 3992, 5670, 9146, 6531, 5125, 323, 8695, 5973, 1620, 7598, 4750, 9765, 4300, 4749, 7859, 4347, 8851, 464, 8746, 7460, 5486, 764, 1619, 1356, 5984, 2871, 4972, 7793, 8794, 6870, 5621, 2785, 2540, 4766, 9315, 7665, 5088, 8010, 3638, 6708, 5607, 8387, 6473, 9906, 3136, 4332, 4253, 1986, 4795, 2998, 9446, 281, 3762, 1064, 1637, 9746, 3935, 6609, 7538, 2728, 3478, 3158, 5513, 6018, 7924, 4828, 3682, 3012, 2837, 7319, 9719, 8444, 5706, 6192, 8350, 8841, 524, 2603, 827, 5318, 5601, 272, 5599, 9362, 1336, 7235, 9108, 5270, 3843, 6645, 7997, 7321, 9803, 3509, 3338, 7726, 8336, 7019, 737, 1173, 4338, 456, 9617, 44, 6648, 7967, 8884, 7171, 570, 9710, 2488, 6170, 9982, 8086, 5532, 1317, 5321, 4639, 6586, 9164, 1284, 4582, 6484, 1086, 8091, 9821, 8812, 6427, 6840, 9549, 7600, 1178, 5, 7216, 1221, 6652, 5183, 105, 3822, 5752, 9815, 6310, 1921, 9796, 4396, 7453, 1112, 9716, 2091, 7697, 8879, 3374, 2278, 5362, 4460, 369, 5183, 3271, 6795, 2023, 2820, 4394, 3200, 2824, 1610, 4420, 9475, 6793, 4525, 3296, 2544, 4339, 9605, 4465, 4134, 4001, 1917, 5245, 3716, 4008, 2941, 2595, 7381, 5219, 7957, 1841, 5587, 3139, 5112, 2382, 5161, 7931, 6776, 8361, 754, 8386, 2781, 229, 5178, 7305, 3524, 7722, 1643, 3129, 2186, 5776, 7129, 4103, 1021, 845, 8110, 3961, 3439, 5491, 9180, 1395, 7331, 4766, 4534, 2442, 7148, 9694, 373, 3923, 8055, 1126, 2308, 835, 1354, 7485, 8139, 4878, 5207, 9782, 8007, 7392, 5558, 5136, 1495, 6578, 5980, 9605, 539, 9419, 5096, 9718, 813, 2427, 4484, 5346, 4868, 1631, 5040, 5241, 5554, 3094, 6366, 7862, 3929, 7720, 5347, 2068, 2598, 553, 1850, 604, 7945, 7407, 5739, 9439, 3985, 1719, 9044, 4523, 1137, 4139, 4241, 1949, 6565, 8724, 7295, 1433, 355, 2335, 6673, 5909, 5429, 3039, 3770, 9357, 759, 9116, 1425, 3356, 9669, 3274, 3959, 7613, 680, 9698, 7052, 4665, 1416, 6095, 9187, 2553, 234, 3427, 4501, 6798, 2151, 1796, 8231, 2506, 4130, 4904, 8414, 9559, 7942, 2183, 8915, 8701, 1299, 340, 2056, 967, 3613, 6015, 8580, 4293, 5712, 5631, 8957, 7128, 1725, 8144, 9680, 1958, 1571, 4181, 8756, 3721, 5977, 6987, 6227, 107, 1890, 4640, 9665, 9832, 6823, 8580, 8532, 8122, 8919, 588, 9089, 2531, 6602, 7668, 6824, 2314, 3298, 5781, 9442, 5023, 3924, 9121, 6981, 5495, 3302, 5736, 9216, 9278, 2723, 5442, 9384, 4613, 81, 9048, 4444, 6904, 7627, 2976, 5025, 6546, 3563, 4113, 9077, 165, 1781, 5900, 2479, 5078, 1681, 1920, 100, 5605, 1041, 7080, 1099, 4342, 2816, 314, 3620, 5539, 5756, 3004, 151, 5837, 2052, 4594, 2740, 9678, 7570, 7765, 6224, 1133, 1878, 5300, 1297, 3658, 1199, 3775, 8736, 2880, 5695, 8835, 8484, 6735, 5915, 9583, 1077, 8731, 9897, 4696, 4269, 5652, 7700, 4419, 1488, 9751, 9013, 4228, 9429, 6582, 1992, 5652, 7714, 3870, 951, 9011, 7528, 2150, 2786, 6263, 5029, 8480, 5098, 3513, 5214, 1012, 3095, 6291, 9743, 2991, 986, 4011, 8642, 8686, 8429, 130, 8436, 7441, 4357, 7864, 4023, 6349, 3516, 1736, 218, 4466, 746, 7746, 6616, 3532, 4008, 1644, 2011, 9105, 5157, 7225, 117, 8251, 3515, 9859, 1241, 4501, 3869, 9883, 3186, 2298, 12, 1621, 9739, 4369, 9485, 3761, 717, 3000, 5497, 935, 7466, 6243, 8680, 4081, 9774, 2688, 5724, 1784, 1792, 881, 9008, 1909, 9131, 2523, 1768, 372, 7023, 5637, 255, 208, 7934, 267, 1829, 7673, 4635, 1314, 1433, 5352, 4313, 6929, 6286, 1778, 3172, 4966, 5858, 2945, 7653, 1582, 4729, 9445, 2462, 3737, 1354, 1593, 6259, 3121, 1965, 3281, 8757, 2219, 3489, 6691, 2485, 5318, 4363, 7119, 6631, 5796, 2471, 943, 2724, 8757, 2721, 5896, 3722, 8578, 8840, 1375, 160, 3568, 820, 2622, 7304, 2173, 4214, 3562, 5294, 6178, 6843, 4050, 8396, 331, 741, 881, 5649, 5103, 8000, 2279, 898, 470, 3221, 3622, 9226, 5941, 9517, 2947, 4519, 8357, 4322, 4679, 1924, 5141, 7300, 9228, 7314, 1514, 2790, 2607, 7692, 9633, 6657, 6088, 9964, 7398, 6968, 5612, 2501, 4967, 7890, 3398, 5436, 1110, 7020, 4662, 7051, 6537, 7609, 1570, 4894, 1930, 6249, 6818, 7071, 3548, 6045, 4384, 5062, 8835, 6991, 2753, 8467, 3648, 8840, 8430, 1045, 5807, 4041, 3545, 774, 1930, 6943, 6210, 3040, 3963, 871, 91, 500, 8479, 1661, 5393, 408, 7909, 2211, 7479, 1457, 8255, 1863, 6518, 7090, 8853, 9271, 5556, 2501, 8110, 3985, 3546, 3917, 8026, 7091, 4690, 9955, 4034, 899, 2995, 7997, 1770, 3085, 8496, 248, 4745, 3889, 656, 2653, 6099, 8134, 4110, 4354, 9996, 627, 1443, 8849, 9897, 6999, 1350, 8007, 983, 4895, 1923, 9009, 1986, 6613, 8963, 6019, 7512, 1958, 4015, 9281, 5042, 2511, 9528, 9786, 6400, 183, 2439, 2498, 8317, 6548, 6852, 8312, 7175, 8295, 7161, 7071, 5293, 8510, 5078, 6276, 3405, 7000, 5284, 5390, 3612, 4247, 1409, 1123, 6204, 5424, 403, 1245, 7934, 9931, 1031, 4334, 114, 3470, 6832, 8430, 18, 3683, 6742, 7192, 1977, 3902, 4263, 7269, 2412, 9340, 3545, 5817, 6340, 8828, 1206, 9952, 3074, 2615, 1074, 9277, 8038, 1477, 522, 5972, 1408, 1553, 305, 1521, 5023, 7136, 9951, 5040, 819, 6692, 2232, 2795, 594, 6495, 64, 3006, 5835, 3608, 8822, 2174, 2435, 28, 2125, 5509, 2642, 3199, 4786, 680, 4675, 5308, 6651, 6082, 6860, 6955, 7603, 1882, 4091, 7553, 6922, 4909, 4245, 9153, 7704, 4839, 5647, 7767, 7844, 1481, 1375, 6666, 3655, 3810, 6693, 5779, 9318, 9335, 8977, 4104, 14, 3652, 9411, 6664, 9734, 6271, 3619, 7336, 8153, 7709, 4889, 5074, 2618, 9133, 4227, 321, 3972, 9874, 8087, 1815, 1355, 9462, 8481, 5009, 3271, 5173, 788, 2588, 4508, 9765, 6692, 4521, 3417, 6102, 1185, 3150, 2373, 4804, 486, 525, 2513, 5375, 5599, 5130, 4508, 9825, 5451, 8479, 9699, 3537, 294, 1053, 2998, 8774, 6062, 6269, 3947, 6849, 8857, 8454, 6614, 5548, 2975, 30, 1650, 4160, 3179, 4022, 8963, 3665, 4546, 1476, 9039, 145, 6606, 3546, 9969, 2056, 2024, 9668, 5593, 2317, 720, 8590, 1090, 6782, 4859, 5036, 3630, 3715, 3490, 243, 9262, 6464, 272, 911, 623, 3451, 4932, 9586, 7115, 9478, 1061, 6154, 9622, 7666, 9699, 9591, 9721, 1723, 9258, 5313, 4040, 9978, 3903, 5129, 6759, 8761, 165, 389, 2475, 3655, 631, 1737, 118, 903, 2647, 741, 4354, 7579, 326, 1469, 7056, 1386, 7622, 6678, 9052, 7321, 6268, 8773, 9043, 5526, 4085, 3082, 5503, 7988, 8211, 2262, 6748, 8376, 2650, 9223, 2030, 3280, 959, 2148, 4183, 3606, 2888, 8537, 1184, 3214, 5, 8240, 4600, 7627, 4918, 3651, 4948, 1186, 2423, 3990, 6711, 6508, 7072, 2214, 4495, 5283, 4475, 1243, 3658, 7124, 465, 5688, 404, 1424, 7835, 4587, 5030, 723, 3123, 6213, 3936, 3128, 4453, 8535, 755, 9370, 2186, 5702, 556, 4608, 9691, 7266, 1116, 6763, 9480, 5610, 2045, 3954, 6853, 5703, 1078, 7318, 1391, 1481, 8741, 9225, 6068, 3770, 9948, 9190, 9983, 3884, 2318, 4436, 2418, 3072, 3806, 4604, 8773, 4361, 9212, 8463, 1626, 327, 5226, 1106, 5937, 7271, 5060, 2789, 2973, 6137, 106, 4363, 7618, 8847, 3588, 3685, 2617, 3536, 2875, 2599, 7419, 5192, 7035, 9837, 8263, 840, 4440, 7035, 5200, 3651, 5498, 6826, 3978, 723, 7931, 9914, 7993, 2990, 2702, 966, 9127, 2807, 5329, 6744, 1654, 8916, 428, 4270, 2451, 3302, 6869, 9870, 8494, 3903, 9706, 6756, 4743, 4146, 3790, 9942, 7796, 9288, 6768, 1773, 10, 4699, 1686, 8003, 7689, 4388, 8969, 6815, 7195, 4297, 3558, 8848, 3212, 3986, 3117, 5663, 7288, 9985, 5532, 5781, 3888, 5238, 2537, 8630, 9383, 6326, 8572, 7179, 5614, 5339, 8951, 5623, 37, 637, 3626, 7725, 5025, 2594, 4540, 2219, 6890, 8098, 1066, 102, 2083, 4183, 5765, 9371, 4168, 1297, 5152, 8055, 6534, 7688, 6685, 5916, 4014, 5257, 3094, 9627, 595, 2045, 5250, 632, 2682, 8876, 8357, 7706, 1470, 2896, 9924, 8360, 994, 990, 8461, 3076, 5172, 4226, 2447, 9339, 5522, 7599, 7394, 2055, 5286, 4079, 7971, 9300, 9335, 1064, 8927, 9930, 3109, 4177, 562, 5790, 3052, 8918, 3496, 4521, 1814, 3420, 2880, 2807, 4409, 1341, 5883, 9581, 5566, 8330, 8920, 1088, 5928, 6314, 3142, 1214, 392, 1112, 513, 9727, 2176, 9440, 9656, 5285, 3616, 217, 1075, 6667, 9135, 4570, 1188, 948, 7989, 4068, 3755, 2398, 5409, 9637, 1978, 975, 7967, 898, 2062, 3894, 7211, 5203, 5107, 7603, 6315, 5620, 7329, 8491, 5059, 6985, 3775, 8675, 7201, 4849, 5341, 6336, 9419, 6529, 7283, 7407, 596, 1038, 9805, 6004, 675, 1783, 6979, 8641, 2680, 9040, 2535, 9891, 4243, 7641, 7493, 558, 3261, 4822, 9048, 8320, 1806, 2823, 6994, 9006, 7671, 2335, 5342, 7089, 8863, 2624, 4496, 9459, 3662, 4301, 5463, 4336, 6083, 2441, 2977, 8763, 1481, 5511, 8654, 5723, 3152, 6146, 6280, 6412, 967, 5328, 4732, 2773, 8150, 1725, 1779, 5821, 4060, 7120, 2910, 2922, 9744, 7405, 2381, 3405, 1706, 7843, 7740, 7789, 284, 717, 6552, 1764, 6227, 5205, 7486, 9378, 1351, 3766, 5789, 2318, 9093, 520, 5090, 7243, 2245, 6868, 3063, 6304, 3987, 5972, 9226, 3730, 3377, 1606, 7135, 5082, 9449, 4875, 2870, 9732, 5591, 9422, 1495, 1817, 4626, 8981, 1194, 5976, 2746, 6983, 8293, 1839, 7503, 3383, 9081, 9747, 251, 2143, 6051, 4237, 8115, 5276, 7967, 1491, 6882, 5101, 6572, 6331, 9975, 9442, 6062, 5565, 8863, 7557, 7381, 3489, 6538, 8575, 9464, 9283, 5557, 7757, 1122, 3059, 1140, 203, 2806, 1390, 2346, 8856, 5626, 460, 4132, 3593, 1950, 1014, 8693, 8522, 7344, 8668, 7963, 3406, 4233, 6826, 962, 1613, 314, 7499, 188, 9778, 6782, 5744, 7535, 7904, 8802, 8674, 8106, 1607, 63, 451, 463, 5689, 911, 4595, 9282, 2860, 5608, 7975, 1382, 2951, 6642, 9345, 6356, 874, 6170, 7318, 2487, 6484, 4817, 2674, 6261, 1598, 8417, 3796, 9502, 7219, 2469, 7607, 8826, 2532, 8058, 9289, 8221, 8968, 3883, 7502, 1828, 9490, 5476, 3209, 2441, 2117, 2553, 8797, 2991, 8722, 6115, 5477, 5206, 931, 8151, 1467, 2529, 6567, 5262, 2030, 3786, 7730, 9636, 2612, 262, 7694, 1900, 8482, 6661, 5782, 5983, 8488, 5272, 1458, 1696, 7712, 3575, 4248, 6508, 6565, 2970, 2622, 2042, 8175, 3553, 192, 9641, 6081, 6759, 4903, 8110, 544, 2633, 7746, 3155, 2894, 5439, 5055, 1375, 2100, 836, 7357, 588, 6107, 8815, 2283, 3819, 2389, 6531, 326, 8954, 9501, 2948, 995, 7676, 6501, 1187, 7317, 2581, 7945, 2219, 691, 8489, 4851, 8437, 1644, 7744, 3876, 6698, 9119, 5975, 7533, 6475, 6562, 3640, 5290, 8845, 7458, 7679, 5375, 7784, 6633, 4876, 731, 7627, 2551, 7231, 8814, 9867, 9812, 6758, 2085, 502, 5246, 6936, 8939, 6889, 4679, 2814, 3587, 3797, 8788, 1119, 272, 5350, 4758, 5562, 4194, 2216, 3240, 9569, 9999, 9873, 4444, 730, 7499, 6994, 7961, 6313, 6861, 7772, 3070, 8946, 8274, 8316, 5881, 7212, 5205, 560, 25, 8791, 4356, 8813, 9910, 4628, 4162, 4668, 190, 8355, 6883, 3430, 7923, 6881, 3302, 2367, 7611, 801, 9361, 5571, 7113, 6221, 3342, 183, 5166, 1616, 8498, 1047, 8828, 3703, 1606, 8853, 2494, 5962, 7665, 2403, 589, 1826, 7071, 778, 181, 3953, 4208, 8104, 834, 7509, 470, 8444, 8309, 9830, 4015, 5421, 6051, 7357, 5603, 1217, 8972, 4101, 2263, 7799, 7803, 3868, 6652, 296, 9829, 4316, 2699, 418, 6142, 9769, 1196, 6322, 3722, 5403, 4425, 4555, 2911, 4895, 2999, 1219, 4725, 7013, 6640, 776, 4369, 2242, 1992, 3341, 6342, 4254, 1140, 4145, 8121, 7791, 4440, 7950, 2106, 7139, 8367, 8247, 6907, 9562, 4569, 628, 4964, 8994, 5183, 7875, 3889, 8182, 9093, 8613, 5195, 5733, 9389, 9564, 7974, 1380, 2904, 4316, 5633, 4044, 8460, 3754, 1834, 2900, 1704, 3940, 38, 70, 2187, 6945, 9632, 6755, 7573, 4596, 5749, 2755, 2470, 9637, 937, 1563, 8250, 6131, 7295, 7638, 5694, 5269, 9017, 8598, 9584, 4650, 2641, 8044, 8404, 4475, 944, 107, 8414, 982, 177, 600, 7926, 9808, 7355, 5499, 4403, 3104, 8253, 6873, 2740, 9189, 8436, 989, 5320, 5730, 8627, 1013, 999, 7643, 9611, 583, 2293, 2251, 8627, 697, 6725, 9570, 803, 5139, 552, 980, 5739, 8478, 787, 3094, 3976, 5190, 6197, 2228, 2062, 8936, 1417, 497, 9925, 6737, 6227, 8551, 7750, 7226, 6194, 7360, 7808, 8487, 9611, 6434, 9183, 6336, 6004, 9986, 1474, 6555, 965, 7213, 5032, 1751, 306, 9007, 6941, 6502, 1235, 9003, 5438, 2652, 9499, 5362, 9388, 5726, 3913, 7137, 2951, 106, 4497, 759, 8592, 4107, 7192, 7775, 442, 3195, 7760, 1916, 9750, 8724, 9129, 4781, 475, 9434, 3788, 7416, 5936, 5023, 6418, 1373, 7675, 5917, 6735, 7062, 1642, 647, 4199, 4593, 753, 8695, 5351, 9345, 2802, 2543, 7119, 3244, 5737, 4879, 5160, 5487, 3603, 4288, 267, 4078, 3721, 4055, 1493, 9657, 9077, 7910, 1029, 6752, 3826, 7764, 3813, 5468, 8411, 8012, 60, 9163, 6707, 5411, 8508, 9508, 7953, 5627, 2752, 3690, 505, 7911, 9176, 4108, 2198, 9443, 8185, 5919, 3498, 9678, 5575, 2575, 7587, 6604, 9326, 1413, 4368, 3138, 6880, 2778, 1150, 6940, 1941, 7856, 2351, 448, 7364, 304, 6074, 115, 3993, 6579, 8026, 3169, 687, 224, 2612, 8871, 6143, 6109, 8549, 1718, 8683, 6135, 8321, 8008, 7548, 2688, 1146, 4427, 5466, 2295, 1367, 7406, 151, 3717, 7853, 7515, 4020, 3927, 7629, 8013, 505, 5655, 1181, 1191, 5878, 3793, 62, 2020, 9901, 8610, 3737, 8584, 4745, 2058, 6591, 2292, 4746, 7737, 6719, 211, 31, 8085, 7617, 182, 1802, 5469, 7696, 5821, 9396, 5325, 3834, 9900, 979, 5015, 1091, 6857, 8807, 1153, 8877, 8708, 9763, 2614, 7291, 4508, 4671, 3882, 6800, 9417, 1618, 3518, 9628, 1649, 1603, 7244, 1830, 3405, 2713, 9526, 9226, 2108, 4850, 3059, 2008, 5829, 8073, 3098, 2686, 6880, 4251, 1562, 5587, 4014, 4175, 2877, 8521, 8846, 6759, 5320, 8263, 8376, 8838, 7890, 25, 441, 5133, 1855, 3845, 7845, 1380, 3071, 9952, 6230, 6129, 1959, 2058, 4202, 5057, 4743, 1081, 9308, 6305, 6668, 3321, 479, 9545, 1841, 9325, 6303, 7161, 7587, 4679, 5999, 5476, 4703, 6439, 609, 6557, 284, 8454, 7937, 3354, 8406, 4166, 9483, 365, 6223, 3685, 5422, 966, 4765, 4729, 7270, 1433, 8049, 7749, 977, 9890, 7074, 7279, 7051, 4660, 1957, 3049, 136, 6660, 9488, 744, 3216, 9771, 9197, 1152, 3125, 7602, 5318, 2607, 7967, 1541, 6291, 3388, 2506, 1056, 8116, 9776, 2488, 6165, 7525, 3464, 6055, 4598, 743, 3105, 9257, 2700, 6154, 9392, 9360, 5641, 136, 2576, 5411, 9333, 3728, 8535, 6935, 9045, 1142, 4901, 585, 7433, 8288, 3091, 8489, 6403, 2866, 976, 2568, 391, 4440, 8622, 4988, 5183, 1727, 4244, 7883, 7880, 3636, 7242, 3520, 3772, 9817, 8931, 3104, 3544, 7466, 38, 2588, 8607, 4938, 3173, 6040, 3225, 6263, 4528, 9628, 9129, 5504, 2196, 9519, 9944, 817, 4506, 5127, 2544, 8750, 3009, 423, 2386, 250, 3943, 6157, 67, 2873, 9260, 3611, 338, 9297, 6199, 8945, 4234, 9371, 4985, 7459, 5633, 9512, 7087, 4762, 5016, 9282, 4280, 4959, 99, 8785, 85, 2642, 7535, 3094, 3065, 9920, 3344, 7007, 6076, 3410, 9880, 5335, 7021, 217, 4632, 3219, 9162, 8866, 2589, 4146, 6324, 8222, 3658, 3410, 2983, 8673, 2692, 7262, 3632, 2790, 6047, 3717, 5431, 3581, 6810, 8496, 3501, 154, 5502, 9576, 3564, 5381, 4911, 584, 5598, 9542, 3802, 4759, 8407, 6391, 8905, 4731, 4613, 2562, 8141, 7595, 1234, 832, 4857, 4865, 3621, 904, 8582, 9052, 4485, 5391, 7548, 7985, 5544, 3049, 7561, 9108, 8430, 2471, 9691, 4028, 2013, 3493, 8787, 420, 9883, 7691, 5150, 4496, 252, 3291, 2091, 1485, 4122, 6948, 6350, 7743, 7851, 4931, 6795, 2336, 322, 4342, 320, 5866, 7391, 7880, 4973, 5821, 351, 4664, 9848, 2364, 8156, 8634, 2783, 8039, 6325, 7933, 2534, 6576, 1224, 4624, 8061, 5345, 1571, 4411, 3088, 9422, 9341, 9882, 1757, 9663, 4224, 2077, 5529, 1614, 9956, 501, 7434, 307, 5164, 7282, 2670, 3320, 5916, 5453, 1358, 2240, 3386, 3892, 8816, 4609, 8515, 6876, 9954, 86, 1286, 3041, 9508, 627, 2922, 1264, 290, 7146, 3340, 5818, 8759, 3296, 6319, 6193, 3603, 1482, 3474, 6272, 4802, 9390, 1725, 6159, 1630, 5110, 51, 445, 9719, 8565, 7320, 9672, 8651, 8606, 2712, 8158, 9233, 5634, 9422, 9522, 2779, 2761, 5340, 1538, 6057, 1658, 7730, 9659, 3140, 1204, 5931, 7941, 593, 7656, 4100, 2222, 2765, 4150, 2667, 2483, 2715, 9987, 2155, 1366, 8592, 4866, 9523, 7825, 499, 8945, 7347, 3278, 1705, 2686, 4815, 7762, 4344, 2544, 7420, 7483, 3748, 3351, 5423, 4341, 1006, 9523, 6563, 3771, 3672, 9229, 6254, 6387, 9215, 8408, 7752, 7807, 3273, 7275, 5631, 3772, 6219, 2978, 7050, 7924, 5664, 1864, 5685, 7, 4408, 3105, 7489, 8155, 6455, 2912, 2495, 7461, 2435, 9058, 1231, 6107, 8286, 7485, 2493, 7500, 5892, 245, 5306, 9165, 7519, 937, 2937, 3737, 3914, 9986, 1660, 9578, 1849, 7345, 9584, 6257, 449, 7073, 4411, 6904, 9985, 6906, 4364, 2419, 5963, 5595, 8525, 4248, 3079, 1018, 1748, 8971, 1262, 7054, 8135, 8780, 7991, 1071, 2517, 1905, 1056, 4177, 1482, 2905, 1521, 1065, 9161, 1969, 8138, 3572, 8873, 8122, 477, 3237, 541, 6440, 8831, 9066, 688, 1910, 84, 2436, 880, 1345, 9489, 9015, 125, 7479, 85, 2642, 9383, 1141, 6818, 864, 4045, 8338, 1929, 3206, 307, 66, 6777, 9180, 8188, 7254, 2416, 8729, 3693, 1247, 7795, 4381, 3156, 7878, 6816, 4036, 9223, 6304, 3050, 9348, 3782, 3135, 1989, 3165, 4275, 8806, 4029, 8320, 7144, 5957, 1525, 7450, 6023, 8301, 6629, 4211, 5555, 9045, 2940, 9247, 291, 734, 3627, 3447, 8612, 442, 7482, 7835, 6746, 532, 7182, 528, 3666, 9171, 3692, 7941, 7977, 7720, 6260, 5120, 3677, 7785, 2570, 9699, 6086, 9199, 3910, 1640, 8243, 6849, 887, 8533, 7583, 4513, 1980, 6194, 4955, 9461, 4029, 1700, 9993, 1211, 2228, 3659, 381, 5919, 1599, 8358, 3639, 7859, 3477, 7315, 5644, 6047, 7014, 1729, 5245, 923, 3369, 3487, 7772, 4255, 2020, 5354, 8768, 3999, 1548, 3722, 3460, 5576, 5422, 3452, 6787, 7649, 7110, 7168, 3568, 8709, 5525, 7206, 6568, 9002, 4521, 2212, 5048, 1534, 3940, 292, 2456, 7309, 3779, 228, 1563, 5798, 5581, 331, 9796, 7128, 4052, 3255, 2704, 9474, 6706, 9490, 7123, 3816, 6658, 690, 2525, 2182, 7895, 9093, 1184, 2415, 1304, 6231, 3949, 5244, 6523, 6405, 2552, 301, 6632, 4115, 6098, 2212, 4445, 5893, 9340, 8497, 9147, 2043, 7970, 5853, 1533, 5092, 9669, 8190, 5782, 2194, 372, 3676, 1286, 1555, 6091, 2590, 7786, 39, 7833, 4308, 6443, 385, 4608, 3074, 4499, 705, 5286, 8944, 6598, 4625, 7440, 5744, 6668, 5410, 1597, 8201, 501, 1266, 6391, 6283, 3459, 6763, 9958, 4745, 8317, 6049, 7334, 6103, 6088, 5167, 410, 2531, 5551, 5017, 5605, 50, 5722, 890, 8994, 2319, 5515, 6433, 8063, 2182, 1842, 9660, 383, 2343, 925, 6773, 8625, 4383, 3535, 8583, 9128, 1852, 4632, 6461, 7954, 719, 1628, 8364, 3249, 7179, 3381, 8853, 7228, 9102, 9743, 6222, 1421, 5257, 2654, 9483, 7439, 4496, 9142, 7822, 6839, 67, 4594, 5464, 4450, 8129, 4046, 3577, 9981, 8677, 38, 7935, 9396, 1665, 6298, 2644, 8843, 9678, 1497, 6071, 8780, 1240, 2292, 200, 6496, 4946, 9683, 3935, 9441, 8825, 1756, 6280, 8891, 6350, 1743, 3340, 4478, 5789, 6916, 4459, 4466, 6954, 2393, 3861, 8618, 8691, 6505, 7461, 8368, 8002, 3532, 7147, 9241, 5824, 7347, 5736, 769, 7029, 9671, 210, 5853, 1426, 6489, 4743, 7776, 8232, 8083, 2254, 4020, 4998, 6712, 8485, 1951, 9105, 2345, 569, 7795, 8850, 8030, 6162, 6851, 1561, 3309, 6091, 7384, 655, 1827, 8153, 7684, 1497, 8363, 3536, 2923, 4851, 8279, 699, 3083, 6361, 2952, 7102, 1359, 9663, 5586, 3310, 8768, 7931, 3878, 6562, 6780, 1907, 2724, 3630, 3468, 6033, 9720, 852, 6688, 1547, 9004, 4371, 3044, 7366, 7906, 5966, 2217, 6185, 6664, 5299, 2545, 9616, 2401, 3903, 9279, 7987, 7212, 8046, 5917, 1090, 4607, 2697, 2997, 7331, 6326, 6464, 3363, 6046, 7316, 51, 7593, 6320, 4421, 636, 3686, 2327, 6601, 5902, 8511, 3265, 1201, 1055, 2880, 3602, 4958, 2158, 1588, 2170, 204, 7505, 3259, 4811, 201, 6255, 2141, 6527, 2719, 5504, 2573, 35, 5554, 165, 6354, 9975, 800, 39, 2301, 7401, 5941, 812, 666, 7142, 1866, 3545, 743, 6824, 5703, 2331, 8993, 5907, 9835, 2252, 717, 36, 8507, 2858, 6562, 1226, 8361, 9134, 1260, 3915, 9299, 7613, 3889, 98, 7652, 6190, 7499, 3592, 7001, 8164, 734, 8867, 1709, 1477, 5690, 7412, 3807, 4683, 3318, 3641, 6934, 4034, 3677, 5440, 6891, 238, 6665, 5252, 9372, 7925, 9167, 8670, 5538, 3056, 8768, 3189, 9245, 6267, 6781, 6246, 4430, 7515, 5112, 6138, 8991, 802, 3549, 2797, 5485, 6867, 6438, 2418, 900, 114, 7858, 7791, 352, 4523, 3043, 9723, 2447, 2210, 8393, 7984, 5265, 7161, 1173, 4510, 3427, 7954, 755, 7857, 5468, 5867, 3995, 4458, 6668, 7544, 7254, 2152, 4410, 3692, 4570, 5310, 3805, 2427, 3101, 4157, 6950, 6144, 3880, 9396, 8353, 2273, 7380, 3618, 9433, 8552, 8127, 2860, 6505, 8882, 717, 1973, 4748, 4711, 6430, 1416, 2254, 3684, 3568, 6664, 7375, 8137, 1973, 1180, 564, 5074, 5336, 7513, 1217, 9215, 6909, 9569, 1488, 4288, 3187, 921, 2840, 1314, 3780, 9345, 195, 4497, 1317, 4943, 9207, 7746, 6359, 1461, 1430, 9926, 8124, 8804, 8063, 97, 9984, 8627, 5170, 5319, 6140, 6386, 4534, 3048, 5955, 6022, 7335, 9141, 6942, 175, 455, 721, 9519, 649, 5218, 835, 5592, 4424, 8581, 1950, 5884, 11, 1876, 4008, 8814, 9939, 4104, 8797, 8565, 9274, 4116, 4704, 5659, 8650, 7752, 1614, 4671, 5087, 755, 1612, 5261, 1209, 2333, 4780, 1858, 7550, 5615, 7449, 1974, 4195, 9399, 7858, 4205, 1274, 1865, 3019, 1212, 5969, 1816, 9777, 5242, 5932, 4481, 901, 4582, 2232, 2514, 9252, 7318, 3268, 864, 2579, 4477, 3197, 7358, 6334, 747, 2972, 3782, 2721, 7167, 3181, 578, 1372, 4454, 2443, 4390, 5666, 8412, 6206, 5443, 3654, 2137, 9923, 4554, 6718, 2155, 7068, 5970, 9472, 336, 6834, 2051, 4812, 31, 9408, 1145, 777, 2379, 4927, 3497, 9545, 8107, 4075, 917, 2561, 6517, 5306, 8227, 4928, 1512, 3669, 8582, 3648, 3592, 3135, 366, 5746, 203, 6336, 5217, 538, 3169, 7267, 5350, 3199, 6675, 6495, 3976, 9053, 1421, 7473, 8598, 9528, 1547, 9514, 2089, 8064, 4820, 315, 2992, 6332, 3984, 1573, 9979, 7575, 4707, 345, 3320, 4910, 6680, 8537, 5447, 9849, 5804, 796, 3048, 2479, 7290, 7024, 1531, 8711, 4496, 129, 8239, 6042, 9643, 328, 4105, 4463, 643, 7097, 794, 4626, 8669, 773, 2201, 3376, 1118, 5521, 8285, 7798, 4057, 3731, 7646, 9861, 4527, 694, 2339, 1817, 7717, 3870, 527, 2213, 3999, 8766, 8255, 3642, 9093, 2360, 8104, 9735, 9456, 8897, 4361, 8124, 9670, 6561, 1499, 787, 2081, 9783, 8584, 6138, 3514, 6230, 5999, 8040, 6923, 8338, 9856, 4640, 2207, 383, 6852, 6206, 9149, 5106, 9847, 8241, 7465, 7950, 7976, 6920, 6847, 2336, 5044, 6516, 8897, 6542, 7303, 977, 6325, 5886, 7115, 9838, 2116, 3113, 7878, 9038, 1450, 7734, 3678, 3657, 8116, 530, 9862, 7264, 5636, 9708, 5505, 3100, 7658, 3480, 20, 4504, 5816, 5064, 1020, 4712, 1605, 8323, 5689, 7930, 4208, 2803, 7768, 6323, 5916, 5645, 5361, 7366, 3378, 9039, 1023, 1494, 9568, 884, 8758, 5203, 592, 4262, 8303, 8249, 7742, 8323, 2753, 3557, 3386, 3773, 8268, 4991, 2095, 3957, 2920, 6303, 6759, 687, 2626, 2675, 6332, 7987, 40, 9709, 7025, 1063, 1203, 6592, 1946, 9960, 1795, 2538, 4222, 97, 787, 1964, 8420, 3540, 5520, 1805, 7312, 3788, 6796, 9407, 7744, 9716, 5710, 4503, 402, 8335, 7177, 6734, 6321, 7217, 6443, 3346, 8279, 7645, 9937, 225, 7605, 1732, 2763, 1826, 1829, 3549, 3789, 248, 7089, 9309, 2053, 4401, 3097, 8848, 3807, 841, 8563, 9516, 5343, 8965, 7851, 2520, 5698, 4172, 9737, 2140, 7517, 8015, 9785, 7454, 8240, 7389, 9185, 1003, 9214, 1013, 4551, 3003, 1261, 1640, 2312, 3313, 6040, 5408, 2160, 9846, 6248, 722, 9362, 1590, 9686, 7212, 4110, 5384, 1383, 3846, 7523, 8899, 1861, 7307, 6353, 100, 4695, 5537, 1103, 3909, 6550, 5653, 6912, 7810, 7293, 9223, 1122, 3332, 4630, 3281, 3177, 878, 4003, 2539, 2468, 3688, 9750, 6577, 9071, 1133, 422, 6594, 32, 2283, 3901, 6384, 2383, 8596, 1921, 3485, 2504, 8470, 9138, 9416, 6279, 6430, 8639, 7401, 9761, 3269, 682, 2938, 4146, 4684, 5476, 6613, 8372, 5226, 3190, 7443, 6358, 3611, 4036, 6390, 5893, 7936, 2774, 8276, 6531, 4694, 1760, 9035, 3163, 897, 8451, 9442, 7326, 7089, 6843, 7086, 357, 7524, 23, 4503, 2207, 5499, 1116, 578, 724, 4305, 8020, 7082, 7916, 2056, 3471, 3809, 9992, 6244, 2084, 6523, 938, 3843, 5557, 4101, 4739, 4008, 3543, 2064, 1096, 385, 9150, 1453, 7908, 9172, 5956, 115, 4670, 7071, 693, 5394, 1375, 8713, 2475, 9290, 768, 5946, 3098, 760, 2190, 5181, 7282, 3127, 9023, 2839, 7227, 3761, 6846, 769, 5825, 7942, 1154, 4974, 9394, 9062, 4146, 5349, 9176, 8816, 2420, 9869, 4209, 3794, 8581, 6683, 3083, 9349, 2628, 6181, 108, 4817, 1361, 7389, 7944, 383, 227, 5170, 4144, 7073, 5939, 9969, 5014, 7092, 4942, 4407, 6154, 9088, 9756, 5329, 7903, 2175, 5198, 2111, 5969, 3778, 8794, 9051, 3127, 1422, 5231, 3234, 6239, 6592, 623, 4182, 6975, 850, 9352, 1118, 7922, 5290, 1087, 2935, 2382, 6029, 7342, 8535, 5116, 7098, 3864, 3018, 9273, 9061, 5129, 5241, 2839, 3922, 4292, 5965, 5343, 9522, 9199, 1581, 6114, 9822, 5763, 3088, 672, 5114, 4206, 8593, 403, 5292, 1528, 2785, 1320, 8869, 1319, 6436, 5967, 5183, 9453, 5239, 4244, 4582, 479, 7082, 8503, 4770, 3047, 3846, 4292, 2246, 5427, 405, 2068, 1189, 3493, 2739, 6302, 7698, 1331, 6705, 2990, 2858, 9489, 4310, 1727, 808, 745, 7693, 5990, 197, 2931, 233, 4778, 3410, 7315, 3281, 8180, 361, 7127, 2471, 2607, 2553, 2876, 4674, 3741, 6369, 7412, 43, 4066, 8743, 6747, 7056, 1601, 6235, 1365, 3327, 7043, 2109, 1020, 3032, 2306, 3951, 3265, 7083, 7360, 580, 364, 5540, 940, 7490, 8011, 3547, 42, 886, 8220, 3783, 7255, 5632, 3825, 1321, 4374, 572, 8376, 5974, 6807, 9740, 9301, 3849, 1848, 321, 6881, 4153, 4271, 145, 1236, 1631, 724, 1600, 7170, 1664, 9089, 5180, 5211, 9131, 6066, 3431, 2913, 3320, 9062, 6738, 4640, 3436, 7309, 3015, 9410, 4115, 2755, 8710, 7963, 4603, 9030, 4844, 8755, 3301, 4988, 9991, 4932, 5712, 1590, 2101, 7376, 679, 7281, 2586, 9809, 3346, 6016, 2721, 6666, 5078, 9459, 1305, 8513, 6767, 4320, 7922, 882, 7074, 6632, 8845, 1676, 5662, 3688, 431, 8962, 8676, 422, 3893, 4387, 2012, 5994, 1763, 2690, 3274, 4349, 2498, 6620, 365, 5219, 3285, 5442, 4677, 4590, 3954, 1444, 8909, 1876, 2325, 5983, 8507, 1170, 7659, 4169, 4857, 8090, 3130, 3532, 8512, 7023, 7919, 523, 3017, 9682, 3212, 6290, 4030, 5709, 2910, 4395, 928, 6194, 9836, 5604, 783, 3790, 7048, 9692, 5666, 9373, 5675, 4172, 542, 3334, 8340, 5399, 1423, 1470, 8930, 9934, 8493, 6849, 457, 1509, 6531, 3668, 7799, 561, 9377, 708, 4955, 304, 6901, 4790, 5908, 7684, 8580, 2955, 7376, 4245, 2327, 3050, 8417, 2869, 6383, 6757, 8267, 7806, 8226, 7197, 7740, 6719, 4046, 8196, 8227, 576, 1863, 6025, 1136, 1240, 6733, 6091, 1543, 3633, 880, 7451, 1317, 9460, 406, 8692, 3704, 2733, 1742, 2121, 5601, 8125, 8877, 3867, 5930, 7103, 1064, 3669, 3821, 5109, 1865, 2047, 5685, 3727, 8072, 6820, 4967, 4804, 2911, 6510, 8437, 3791, 3960, 9754, 3250, 4365, 8446, 6954, 7097, 187, 9074, 2698, 8311, 7950, 6565, 4241, 5052, 7628, 7909, 8872, 2736, 9773, 919, 8420, 3500, 8991, 5240, 8467, 3794, 8150, 4976, 2231, 1940, 8935, 1984, 5190, 3300, 429, 2143, 397, 616, 1216, 3095, 8926, 9165, 9659, 3166, 4217, 7286, 1075, 3088, 22, 848, 4007, 8441, 4348, 2997, 3681, 2814, 6791, 1831, 7789, 9021, 3770, 6724, 1005, 8959, 24, 1434, 1101, 421, 2049, 2317, 3515, 975, 1482, 3173, 4141, 5698, 458, 5215, 8786, 480, 6063, 2792, 8921, 411, 5788, 2601, 3224, 2578, 4431, 1013, 1599, 8201, 7736, 2603, 7160, 7760, 4036, 8261, 8180, 6085, 577, 1694, 7059, 2058, 4866, 1199, 7756, 5324, 6414, 6541, 5803, 2477, 9332, 4723, 2887, 5120, 7324, 6110, 7697, 1755, 7122, 9296, 9955, 4858, 1898, 7114, 2617, 5934, 5375, 796, 2019, 5951, 2489, 9077, 8009, 7355, 276, 5764, 2678, 6690, 2305, 8481, 9166, 1636, 3204, 2052, 6755, 528, 8162, 4452, 2282, 5284, 3747, 2237, 142, 5645, 9350, 2758, 1578, 4725, 3554, 3596, 676, 6043, 2673, 8684, 3397, 2948, 4448, 6075, 9637, 6752, 4556, 8803, 8388, 7760, 855, 5142, 8287, 9016, 9593, 568, 4300, 3340, 2804, 4441, 8984, 2154, 7198, 561, 6878, 752, 4157, 7553, 6794, 6830, 6237, 191, 9778, 685, 6266, 9415, 7436, 821, 8217, 5823, 8580, 9071, 965, 6867, 8087, 558, 7434, 2386, 3897, 237, 6826, 2880, 2391, 4024, 3441, 9269, 4775, 7598, 6821, 1569, 4427, 3058, 1759, 4205, 3742, 8024, 3619, 1178, 8845, 1835, 7000, 7425, 905, 7965, 4291, 8992, 8522, 1725, 1377, 2419, 1962, 8202, 5299, 4352, 2225, 8740, 3620, 6999, 6338, 441, 8568, 765, 3498, 326, 4969, 7239, 8350, 8587, 8416, 7195, 421, 5416, 4619, 1326, 3381, 8910, 317, 1902, 634, 1693, 4321, 2595, 9895, 9619, 6947, 2119, 8359, 566, 9118, 4696, 1006, 7686, 5460, 4504, 8011, 428, 1743, 6361, 9014, 158, 3555, 9435, 5574, 8174, 760, 8954, 7083, 1077, 856, 7717, 2770, 5176, 311, 2665, 4795, 7257, 4783, 3153, 7823, 3901, 7848, 8829, 1586, 3307, 3332, 9597, 3735, 5074, 5957, 2748, 5232, 9512, 2182, 805, 7685, 2942, 9759, 4768, 4019, 615, 2485, 6789, 5790, 2796, 9453, 585, 53, 4236, 3737, 7875, 8137, 1585, 6703, 9723, 4892, 34, 9320, 8626, 5107, 5277, 1373, 339, 4788, 3555, 1144, 2473, 6497, 902, 7241, 516, 1516, 9725, 7305, 7306, 2520, 6757, 7890, 2572, 992, 1627, 446, 9129, 3211, 7149, 8851, 8102, 7182, 8170, 6727, 2289, 3446, 8100, 2627, 8234, 1655, 3771, 706, 8152, 4672, 7946, 8668, 6188, 7670, 5972, 3493, 189, 2728, 1383, 2761, 3720, 3009, 3206, 2848, 6220, 354, 1699, 4321, 7536, 9869, 1048, 9825, 3314, 9148, 2452, 1548, 802, 6222, 2253, 8954, 894, 199, 7621, 7081, 7869, 3593, 574, 8058, 6321, 1957, 818, 40, 4966, 4024, 2888, 1185, 4377, 4587, 5505, 1913, 4455, 6553, 1737, 7769, 5700, 4188, 9316, 6502, 410, 1569, 5456, 1303, 1767, 3077, 8384, 9636, 6669, 8958, 7693, 2989, 914, 8510, 3029, 5879, 2533, 5916, 7063, 6910, 503, 2568, 8823, 4957, 9120, 559, 2726, 4820, 4747, 2041, 1321, 5157, 3610, 6776, 6459, 5376, 9853, 4843, 5012, 6521, 3800, 2704, 9509, 4713, 1214, 2537, 591, 3747, 8453, 7654, 657, 8955, 221, 9479, 3912, 9341, 38, 6637, 4160, 4785, 8678, 5481, 9941, 2287, 2257, 6400, 7663, 2109, 1242, 2674, 8630, 5041, 5377, 8138, 9754, 6590, 675, 345, 337, 9128, 7998, 993, 8082, 8219, 471, 1993, 7560, 508, 8630, 1720, 5292, 7307, 7201, 5233, 9593, 9457, 1632, 7255, 1566, 2874, 9928, 195, 7915, 5305, 8333, 7669, 1895, 9008, 8013, 2231, 8135, 6011, 3223, 6217, 4230, 3694, 8210, 1789, 4201, 6839, 3509, 9493, 4145, 709, 4726, 3737, 165, 6358, 992, 1731, 9231, 919, 1925, 7146, 6224, 258, 4814, 8118, 9265, 2827, 349, 7400, 8837, 3572, 3616, 3067, 7265, 1825, 4855, 1466, 8663, 8364, 958, 2807, 9072, 5684, 6544, 9237, 2041, 7535, 967, 1271, 8454, 2892, 8417, 4677, 3149, 3230, 2795, 2414, 6056, 3143, 9813, 4893, 6715, 3428, 7959, 3979, 5252, 2814, 5444, 3915, 1177, 6402, 6722, 248, 2085, 3266, 9484, 4126, 800, 450, 5396, 9254, 3341, 3813, 3931, 6490, 7042, 6725, 8903, 3098, 9868, 8716, 7990, 6582, 2143, 5948, 561, 7395, 8761, 6004, 1310, 9937, 2406, 8031, 185, 4491, 1296, 9668, 8616, 2096, 118, 4012, 1349, 3459, 7824, 5279, 9948, 4866, 2004, 8851, 7963, 1872, 7566, 5952, 8453, 9709, 1900, 9013, 7103, 661, 5017, 8413, 598, 7422, 6443, 782, 1912, 7739, 450, 528, 9834, 567, 4539, 1183, 4025, 2362, 6462, 3973, 7227, 8465, 2823, 5189, 336, 389, 1141, 8789, 97, 3041, 7802, 7200, 3701, 2819, 5612, 4299, 241, 2055, 5080, 2153, 9793, 5529, 2680, 9627, 6096, 7218, 810, 120, 9579, 7271, 4093, 6805, 5736, 6915, 1994, 6072, 7303, 3135, 4861, 7400, 6175, 2662, 4599, 9876, 5481, 211, 4174, 5721, 2265, 9254, 7873, 2058, 4783, 552, 1685, 878, 7769, 2494, 998, 7348, 9765, 5090, 4152, 5501, 2004, 6146, 1572, 9307, 9280, 6432, 6707, 5455, 9094, 1305, 5330, 4574, 1515, 9504, 294, 3780, 8757, 8167, 5837, 3539, 8718, 7522, 4416, 6486, 15, 5413, 3833, 9780, 503, 7985, 5280, 2506, 4131, 6852, 1813, 3411, 3283, 8519, 8865, 2377, 9824, 4195, 6950, 1339, 3699, 7244, 5118, 2455, 5410, 955, 5993, 4128, 8476, 409, 613, 8491, 5822, 4446, 8270, 6324, 2431, 3550, 8830, 6561, 401, 643, 9971, 3683, 9162, 8836, 6060, 8985, 3031, 3010, 323, 6729, 253, 5441, 9184, 5663, 6395, 5176, 9790, 4871, 5585, 403, 3361, 1406, 4849, 1630, 7730, 7279, 5179, 6559, 3839, 5580, 7201, 3810, 9262, 6362, 2646, 5322, 5347, 5677, 8331, 5670, 2405, 8584, 1110, 1588, 4247, 7505, 6764, 4036, 2375, 2349, 4439, 5736, 3754, 9287, 7366, 1484, 6565, 2545, 8042, 404, 8124, 5243, 4214, 7386, 1605, 6859, 2707, 6951, 2536, 1037, 2621, 4940, 9621, 3730, 6528, 3867, 1235, 3292, 7903, 3610, 5640, 2341, 9345, 9393, 1627, 6710, 877, 8192, 9254, 8918, 8596, 7377, 4161, 2809, 4763, 5765, 9668, 7469, 2716, 2203, 8506, 5336, 7142, 8126, 9066, 3670, 1992, 300, 6961, 9894, 3909, 2600, 2235, 3254, 1993, 3862, 9963, 2869, 2053, 9217, 1787, 648, 6594, 5947, 3456, 1356, 1712, 3123, 8825, 4427, 5325, 7330, 9763, 2467, 5455, 8828, 6137, 7447, 9128, 3098, 7340, 3037, 5697, 9575, 6290, 7690, 3436, 6253, 559, 5488, 5470, 2346, 6136, 2063, 8292, 9592, 3419, 4, 2715, 2243, 4431, 8040, 9572, 4193, 506, 5027, 3021, 6643, 2473, 2148, 9740, 9813, 5184, 5437, 9387, 1474, 3126, 2822, 7726, 3685, 8310, 3196, 6030, 4445, 5258, 4322, 4036, 8677, 4326, 6751, 919, 8756, 4790, 491, 2949, 5296, 5517, 5969, 1938, 7989, 8117, 1677, 7802, 3300, 7113, 7188, 4774, 239, 10, 2500, 3924, 8320, 5695, 9954, 2764, 953, 4275, 6800, 9629, 8600, 3550, 547, 7356, 8340, 1038, 304, 3635, 6554, 6272, 5572, 4543, 4388, 7249, 2344, 7688, 4362, 9532, 2462, 4601, 9542, 4961, 8524, 7861, 655, 8477, 625, 1608, 2752, 7425, 1236, 1352, 975, 1783, 8707, 9314, 2820, 9011, 2948, 9374, 5282, 8520, 3916, 9670, 5768, 6260, 7358, 129, 5792, 9819, 4730, 5333, 4779, 3253, 3194, 5434, 1730, 3818, 7041, 4481, 1242, 8277, 5833, 2216, 59, 4540, 1529, 2879, 3550, 4477, 2252, 8832, 2996, 6167, 8501, 8763, 2427, 5859, 8892, 8218, 5677, 3621, 3551, 456, 6874, 6744, 5890, 8603, 562, 2931, 3084, 1804, 1207, 8917, 4019, 1266, 3456, 5548, 4144, 7005, 24, 6396, 5836, 3020, 2563, 4337, 1782, 4989, 195, 674, 3207, 5872, 4294, 6757, 6328, 1167, 3501, 2217, 9770, 4063, 5147, 2854, 5866, 6354, 1770, 9885, 7620, 5225, 5432, 1763, 2229, 5456, 8159, 8065, 8476, 721, 2402, 257, 5709, 2597, 931, 8915, 8468, 5224, 5672, 4795, 6391, 9173, 7012, 6161, 3235, 2158, 9014, 9100, 8512, 784, 8984, 6131, 6008, 4416, 7894, 8237, 9872, 6052, 6302, 8347, 6772, 8703, 8604, 2481, 1299, 9534, 1396, 9767, 4758, 7068, 4561, 1149, 6240, 1572, 7309, 9474, 3730, 6323, 8574, 2242, 7106, 7557, 8372, 3114, 1973, 6265, 1350, 1844, 2317, 7651, 191, 9089, 6354, 8794, 1569, 7653, 8327, 2965, 7419, 3085, 32, 1980, 4233, 6271, 3552, 1542, 5745, 7282, 7864, 4318, 9523, 4970, 1875, 7894, 8083, 3847, 4159, 9433, 5691, 6475, 7084, 5881, 5563, 3437, 4674, 7132, 1089, 3001, 96, 8508, 6086, 127, 487, 318, 6398, 4038, 1860, 2142, 1320, 9723, 6460, 842, 4693, 8334, 8735, 2775, 2180, 2894, 2207, 7871, 9368, 9290, 3751, 4931, 2727, 8425, 2063, 3816, 1426, 2158, 2323, 7511, 2285, 2809, 7829, 8682, 6847, 9688, 824, 8166, 9411, 7283, 9008, 4103, 5617, 7742, 6877, 7797, 636, 9084, 5667, 4, 8374, 9417, 4934, 1100, 7842, 6996, 4916, 9267, 9154, 7238, 6778, 1438, 47, 4606, 120, 6894, 4293, 944, 5059, 3704, 8226, 4067, 7806, 3843, 1809, 4683, 1639, 2444, 3766, 7306, 2447, 2140, 6723, 7381, 3240, 4564, 4376, 8155, 3831, 3530, 5392, 608, 4968, 5439, 5213, 5087, 2332, 9506, 6030, 7391, 3209, 4256, 1457, 1014, 8099, 3265, 5697, 9737, 5708, 9463, 7042, 8155, 1602, 3764, 5535, 4842, 8328, 9911, 2996, 2158, 3440, 8388, 2765, 8407, 3826, 7978, 3494, 6157, 7483, 9524, 3548, 692, 3779, 5004, 1706, 1877, 8268, 7402, 1614, 3976, 6864, 8656, 2130, 8466, 2420, 7665, 3307, 747, 7575, 6303, 2904, 1015, 4690, 5669, 9421, 8516, 3646, 2915, 4673, 1129, 2438, 8220, 1820, 6217, 3223, 3526, 8094, 1491, 927, 9708, 5467, 7791, 8363, 7597, 6256, 783, 5261, 9563, 1529, 2835, 5865, 4433, 3849, 554, 102, 3270, 9070, 3747, 6185, 3742, 4876, 8622, 1961, 6696, 4839, 5183, 221, 2932, 6674, 1148, 2640, 2140, 8938, 1002, 9736, 5193, 1784, 4996, 4756, 3313, 7831, 620, 7746, 1680, 1174, 7847, 4949, 243, 1594, 1134, 3984, 6469, 9755, 5944, 3164, 4593, 1127, 3385, 7525, 7800, 4532, 164, 9940, 3469, 1166, 9676, 8662, 2950, 4672, 3417, 6263, 2503, 4037, 4008, 4182, 5210, 1854, 9131, 5452, 3448, 264, 9435, 9916, 19, 5379, 3080, 4611, 6506, 6465, 2136, 4305, 996, 2300, 4245, 4465, 3465, 3921, 3126, 6415, 8592, 6543, 2677, 1094, 579, 6684, 5276, 5789, 8538, 4406, 1240, 1985, 4669, 675, 1901, 4687, 6054, 4981, 9298, 2559, 1445, 1434, 6864, 2440, 3733, 1109, 6905, 7198, 5029, 30, 3612, 3621, 6573, 6289, 4714, 7152, 2972, 9989, 2940, 1509, 4395, 4180, 3494, 9064, 4855, 5394, 3751, 909, 374, 3048, 3467, 1818, 4482, 330, 4258, 8214, 1439, 1162, 5412, 6467, 1192, 9024, 87, 7765, 5312, 4801, 4916, 8283, 4790, 7856, 9792, 9184, 2036, 3285, 8247, 6890, 8679, 1997, 7799, 9052, 5045, 1265, 870, 9527, 1595, 5128, 7740, 3033, 6289, 3152, 9499, 7481, 2175, 9586, 5245, 7487, 4386, 161, 5770, 9175, 8017, 5562, 8359, 52, 8847, 6606, 6942, 7525, 8603, 4740, 6577, 3648, 6005, 7447, 3174, 7599, 2574, 914, 632, 8863, 4065, 131, 6343, 6240, 9716, 1588, 3727, 4102, 1748, 9496, 3277, 9765, 5057, 1635, 9816, 3903, 8241, 6758, 1428, 6844, 1497, 8004, 491, 7502, 5450, 3664, 5100, 8023, 4578, 5731, 6885, 8643, 5861, 3228, 4882, 5577, 4815, 8609, 9678, 6563, 8104, 2954, 6327, 3161, 4589, 6143, 7063, 2830, 2900, 8490, 9673, 4397, 6494, 163, 1898, 1943, 3827, 6998, 9966, 8404, 2729, 6851, 7046, 8590, 78, 1928, 4166, 4893, 536, 3844, 1456, 8640, 6797, 7783, 1800, 1386, 3925, 8863, 4215, 6825, 7353, 3887, 1222, 3846, 4050, 3120, 5789, 7876, 117, 5754, 6280, 2845, 2605, 3325, 1435, 2683, 5253, 5600, 7575, 5788, 9443, 9031, 4427, 6240, 6813, 6227, 7626, 738, 5089, 1841, 7562, 2442, 5728, 8784, 6287, 9777, 1903, 2075, 7653, 2019, 7829, 3932, 4864, 433, 7256, 6298, 3115, 2508, 1898, 690, 8296, 1341, 9721, 2723, 7581, 6533, 8949, 5206, 7271, 4038, 7046, 4833, 6479, 2773, 3616, 2766, 2550, 5518, 4841, 202, 7537, 2669, 4133, 2400, 3102, 1389, 8698, 6217, 3896, 595, 6907, 2192, 1935, 6627, 4914, 9516, 3160, 3863, 4721, 431, 7901, 1767, 5263, 4379, 4540, 8878, 7145, 7089, 4396, 1985, 7291, 1932, 4654, 1423, 4332, 7755, 2811, 3030, 3972, 6707, 3624, 879, 8898, 5559, 7505, 3811, 5075, 665, 7674, 9795, 1095, 5574, 1562, 6358, 9952, 6102, 5235, 7097, 3190, 9631, 9081, 480, 1563, 3735, 1903, 5895, 1490, 4713, 8924, 5461, 1419, 2548, 6339, 317, 8107, 3844, 4127, 3181, 4509, 1801, 2976, 5604, 7374, 4537, 1961, 7326, 638, 7196, 4422, 3828, 6826, 3503, 4308, 8388, 7237, 6210, 4282, 8726, 923, 3206, 4186, 2342, 5753, 525, 2658, 3859, 4369, 6785, 7039, 8877, 8585, 14, 4481, 5958, 4551, 6441, 3283, 5189, 3636, 7704, 9016, 462, 1207, 3323, 8849, 8443, 9533, 3131, 7168, 455, 6336, 1354, 2796, 2088, 1878, 5454, 5947, 6246, 2238, 2986, 5123, 822, 3000, 9603, 6780, 7550, 6044, 62, 2739, 9679, 7766, 1754, 140, 8972, 5077, 8989, 7414, 4609, 2119, 4581, 5064, 8455, 5935, 7859, 543, 7812, 3313, 6490, 4058, 5550, 9475, 9181, 6372, 2475, 8783, 3151, 25, 4827, 3212, 2763, 4505, 978, 4516, 4645, 9949, 9593, 3633, 7363, 4201, 5752, 1944, 9264, 4206, 7878, 7123, 4749, 5689, 435, 1238, 9747, 5985, 713, 8927, 2356, 3187, 7710, 5506, 3211, 2536, 8718, 5973, 7041, 9695, 489, 1685, 9644, 81, 5318, 7006, 4281, 1069, 8949, 3545, 5275, 6826, 668, 24, 2515, 1103, 1261, 2262, 7087, 1973, 1188, 9443, 5159, 8898, 4948, 8370, 1433, 3666, 4342, 8474, 3360, 4830, 158, 3003, 4910, 5475, 8, 9191, 6544, 8957, 2736, 1818, 5782, 3403, 1841, 8297, 4506, 3102, 558, 1592, 5075, 1746, 1035, 234, 643, 5982, 8603, 2076, 9647, 2944, 549, 3007, 7774, 707, 6009, 2684, 6182, 6017, 1874, 2725, 4973, 4609, 4543, 755, 8012, 6384, 9051, 2517, 9486, 9609, 4109, 4560, 1354, 5143, 4793, 1997, 1125, 3395, 4072, 772, 6339, 4620, 3778, 4112, 5327, 9787, 6795, 1508, 5803, 8669, 4232, 776, 3278, 8775, 1530, 1289, 5159, 581, 3806, 4644, 190, 7914, 9203, 1543, 3057, 3995, 3539, 4181, 7390, 7611, 4952, 3728, 2231, 8730, 7840, 7557, 8516, 4635, 9064, 4319, 3303, 3296, 5094, 6580, 2071, 6624, 7869, 7229, 7204, 1674, 1872, 7393, 9587, 1074, 8936, 2644, 5069, 2474, 6824, 2458, 84, 1776, 6186, 2314, 505, 4025, 9871, 9021, 8659, 8935, 3339, 1961, 2230, 8432, 8541, 4301, 5055, 6409, 1529, 2259, 8083, 3400, 9652, 7670, 4474, 8587, 313, 9542, 1061, 7136, 1999, 1145, 8912, 8184, 3459, 9416, 2209, 3329, 8436, 867, 2263, 1775, 2828, 4493, 206, 1369, 8793, 5261, 7777, 321, 7520, 5860, 3721, 7171, 3529, 8194, 5758, 3841, 7736, 6818, 977, 9735, 7962, 9888, 7919, 1421, 9304, 127, 4749, 7740, 994, 7012, 9514, 3821, 1505, 9720, 5189, 297, 4981, 2966, 618, 2500, 8825, 4339, 9671, 2354, 2533, 5428, 6195, 268, 2246, 7171, 2, 208, 7059, 7921, 1628, 6362, 8047, 6377, 4101, 9041, 3388, 3614, 2861, 4893, 3334, 8050, 5189, 8314, 1016, 5807, 813, 9840, 145, 484, 2194, 2677, 5911, 8388, 2945, 8156, 5558, 2947, 8363, 2617, 867, 9991, 8979, 8914, 6367, 3079, 7954, 9755, 6693, 815, 4647, 26, 8864, 9836, 8340, 9879, 5642, 9152, 9719, 5787, 9635, 1912, 8463, 5546, 300, 1408, 3701, 5858, 4354, 2064, 8474, 5220, 2055, 7452, 4134, 8421, 531, 2087, 8176, 7224, 2902, 2822, 7250, 1765, 2657, 5589, 1644, 8299, 4741, 1363, 4085, 4375, 3275, 2548, 9921, 3574, 3955, 3622, 9431, 8309, 5685, 7905, 3529, 7739, 5356, 7662, 6160, 5887, 9749, 4335, 3110, 2650, 7157, 359, 4415, 9813, 5948, 6059, 8112, 688, 7421, 2196, 5062, 696, 4744, 4983, 4269, 8699, 8604, 3700, 7007, 4289, 1604, 535, 2027, 6960, 8197, 8187, 2846, 7945, 2522, 5955, 594, 9678, 6314, 5009, 9491, 2261, 1067, 7602, 2948, 8487, 9798, 8010, 9182, 4541, 2992, 3451, 3240, 1596, 7150, 247, 5884, 8753, 782, 7911, 5713, 8978, 6097, 8558, 6922, 8618, 4512, 7516, 8295, 826, 2525, 7785, 3087, 3591, 5387, 6034, 2077, 5184, 4044, 1259, 9725, 7036, 4710, 2965, 8631, 1859, 3211, 4514, 612, 3992, 2424, 6324, 2969, 8521, 4882, 9891, 7138, 9394, 7407, 5433, 219, 9931, 3218, 3305, 3521, 8604, 9339, 5598, 3788, 3382, 6857, 3512, 418, 1566, 6476, 9048, 3425, 9686, 3561, 4036, 3677, 5985, 360, 6646, 4505, 5241, 6537, 1643, 4634, 3943, 7075, 4853, 3873, 292, 8157, 7394, 8896, 7496, 2991, 2683, 878, 9848, 6194, 1295, 1413, 2670, 342, 4837, 2356, 3903, 8873, 6033, 9887, 9233, 2678, 4392, 4473, 9214, 6034, 9107, 3157, 3108, 3959, 7030, 3400, 2116, 4423, 2295, 9611, 7414, 4977, 488, 7261, 1171, 1783, 8674, 3840, 2124, 3510, 6196, 6027, 2382, 2228, 5914, 1615, 4906, 305, 6087, 4119, 6338, 5194, 7276, 9446, 9153, 4305, 2846, 1269, 8727, 5140, 880, 6141, 117, 1368, 3401, 1287, 3150, 2075, 5127, 5274, 5584, 1322, 1300, 7966, 3549, 7213, 9580, 8454, 7518, 5667, 2573, 3856, 860, 9848, 3301, 13, 4152, 6146, 1281, 2879, 1286, 2160, 9019, 1403, 3527, 2420, 2689, 6676, 4494, 7816, 1949, 78, 9137, 3249, 8043, 2686, 461, 7623, 1140, 7979, 3289, 3713, 1834, 4149, 3560, 5134, 4161, 7712, 1280, 5442, 591, 2566, 7601, 9610, 3968, 1128, 2030, 6657, 7804, 6524, 4472, 9753, 6601, 3609, 3001, 4644, 6295, 3462, 2266, 7434, 1440, 5555, 1146, 3273, 9703, 4706, 8407, 3864, 2418, 9687, 9305, 3009, 2253, 6906, 2618, 6220, 8034, 4648, 2877, 5837, 1171, 7348, 5589, 7772, 956, 8590, 2415, 7251, 2052, 4681, 4684, 3492, 236, 5830, 6765, 9939, 536, 5171, 3802, 2954, 4858, 3107, 5962, 7110, 13, 8580, 3330, 8046, 3227, 6206, 3882, 4398, 3554, 9471, 2169, 4510, 8061, 4584, 1760, 113, 9265, 6443, 3604, 9500, 2273, 368, 9439, 2809, 5539, 3240, 5762, 397, 6347, 1724, 7506, 6359, 303, 836, 4404, 3530, 7041, 8286, 7927, 595, 7757, 96, 5104, 5818, 4679, 6863, 5930, 3943, 3306, 9533, 3443, 5578, 9901, 2881, 8386, 5439, 6121, 4148, 5836, 2467, 5871, 3341, 8826, 6174, 4177, 3230, 9704, 1218, 1516, 7630, 1812, 9272, 7725, 6915, 5089, 2404, 3778, 1018, 6347, 7083, 551, 9790, 2660, 451, 2670, 1046, 5890, 8791, 5193, 1725, 1258, 1064, 5066, 83, 7237, 9242, 3313, 6941, 460, 4828, 4570, 2271, 4099, 2295, 9186, 9188, 4699, 2963, 206, 1045, 45, 756, 835, 2705, 1207, 3505, 3750, 7096, 2295, 8943, 8821, 3552, 6, 3886, 3635, 7243, 3128, 6948, 4183, 3587, 1775, 8753, 5858, 5874, 1048, 5043, 5061, 5747, 8006, 5267, 6792, 8051, 6022, 7626, 755, 7228, 1130, 4505, 4324, 3424, 3448, 3144, 6976, 3454, 7029, 611, 696, 157, 7558, 4879, 3743, 9332, 3632, 9600, 5205, 4680, 4643, 266, 426, 2648, 5532, 7217, 699, 1554, 4843, 1453, 8782, 5972, 5957, 3105, 9395, 9405, 6249, 6371, 2858, 3277, 6981, 3553, 3434, 4539, 8432, 7176, 3870, 2064, 6776, 9075, 6744, 1419, 9341, 7169, 4067, 4873, 4386, 4765, 6426, 9228, 6217, 5207, 5200, 2174, 8312, 4595, 1578, 4560, 965, 4435, 7837, 7946, 7988, 1270, 2484, 6420, 8446, 6354, 8484, 5221, 5428, 5227, 6639, 4769, 2396, 705, 9641, 6782, 5470, 6067, 6010, 1686, 1274, 1209, 3860, 9585, 5803, 5438, 4144, 6767, 9873, 1981, 4713, 7860, 3250, 7196, 4280, 1695, 3549, 2763, 6916, 8977, 7990, 3555, 3746, 385, 4260, 3386, 7167, 9729, 9452, 3176, 1415, 725, 4384, 5274, 310, 186, 711, 4454, 6953, 583, 6434, 1665, 8443, 9684, 8861, 2723, 1379, 2410, 5485, 8294, 1387, 3475, 1848, 5132, 3860, 6107, 8518, 1026, 5836, 7969, 4201, 7250, 8694, 8584, 2523, 9004, 8770, 3234, 3457, 5722, 3817, 9891, 7387, 2259, 9574, 6248, 4982, 952, 8657, 467, 9246, 43, 3941, 1094, 5175, 7800, 7200, 3692, 8825, 3036, 1661, 3025, 285, 355, 1609, 2807, 9358, 378, 6040, 2814, 6099, 9857, 2705, 3486, 2116, 2278, 9733, 7097, 3230, 8390, 7563, 2476, 8432, 1504, 3569, 3607, 9303, 769, 7298, 8128, 3804, 8959, 1153, 4088, 9313, 2761, 6895, 8670, 3139, 2935, 1484, 9238, 2791, 4188, 2723, 4906, 6466, 2455, 2002, 9696, 844, 9565, 2171, 9276, 1068, 5739, 2883, 371, 6508, 181, 8498, 311, 9139, 9650, 4399, 8451, 2411, 1293, 7121, 5549, 4227, 8604, 4787, 7017, 2792, 7509, 1922, 9257, 9964, 3924, 8953, 808, 3489, 1123, 84, 4556, 6862, 2966, 4926, 3370, 3146, 3424, 3681, 2284, 3074, 8079, 735, 5484, 9371, 7855, 1033, 3597, 6459, 5819, 614, 9251, 3328, 2536, 8508, 3291, 6460, 7460, 4098, 9948, 8583, 4182, 4503, 5445, 7147, 9429, 8814, 293, 2852, 2494, 2577, 5925, 572, 3312, 1409, 9943, 1167, 2442, 3540, 7625, 8260, 4153, 6875, 1587, 6689, 5382, 4878, 3148, 2842, 8976, 3096, 1424, 3157, 7599, 6868, 304, 7027, 5682, 597, 9879, 8175, 3173, 5804, 8747, 6484, 7212, 8689, 7650, 9653, 2229, 5275, 7913, 6382, 2150, 9500, 3070, 7532, 4377, 6218, 373, 3353, 9313, 1797, 6509, 6911, 8665, 6813, 3937, 4346, 7409, 3816, 2520, 581, 9619, 1267, 7065, 6831, 9956, 4715, 6484, 2184, 9989, 4396, 8565, 2139, 3896, 1635, 9670, 8272, 7852, 43, 1624, 7164, 1840, 8133, 4075, 504, 4945, 8011, 4849, 2354, 1827, 7369, 2935, 1445, 8635, 9999, 8276, 8591, 4714, 4759, 774, 4703, 9155, 9339, 6841, 3050, 973, 6511, 1322, 8824, 6554, 2946, 5988, 8393, 1078, 62, 8896, 6023, 8073, 3745, 8376, 9899, 1113, 1311, 1344, 9748, 1309, 9620, 8338, 6023, 4378, 9112, 725, 3533, 8450, 7565, 6582, 9422, 4076, 7903, 8246, 629, 848, 4234, 9021, 1926, 4296, 7917, 7949, 2368, 1661, 6325, 2267, 2774, 7635, 3611, 2522, 8944, 3230, 859, 4966, 7608, 9970, 5690, 1141, 8420, 3255, 7722, 7842, 7330, 5625, 6088, 7958, 6473, 321, 6979, 8399, 4617, 4896, 6347, 6985, 6556, 2672, 9251, 9330, 306, 2862, 1851, 9249, 6092, 2709, 4215, 3700, 2679, 9904, 4840, 1099, 3158, 2562, 8940, 488, 8186, 5027, 8446, 4659, 5348, 5425, 3057, 9964, 320, 9404, 6949, 6875, 2075, 6200, 6204, 2381, 9061, 8055, 1629, 5153, 763, 5844, 8852, 3442, 5747, 3692, 4540, 8905, 6253, 3480, 9392, 4439, 8507, 7838, 9098, 3854, 3262, 2155, 3818, 3581, 1559, 766, 456, 3633, 6966, 6660, 6013, 6026, 4714, 7642, 1179, 5477, 3486, 31, 8918, 9232, 3722, 3458, 8137, 9975, 6937, 7529, 4414, 5444, 5366, 3511, 9297, 8627, 5666, 3115, 2207, 7224, 3881, 2663, 857, 846, 9322, 6870, 6872, 4035, 4512, 8050, 9511, 7997, 8080, 8429, 7228, 1802, 1887, 5365, 1777, 8823, 2893, 6190, 4266, 8258, 9701, 3563, 6884, 5366, 6678, 9091, 2589, 559, 1753, 3445, 1405, 1075, 315, 8277, 5109, 4826, 6326, 4620, 2822, 4406, 3049, 50, 6208, 4935, 5414, 7984, 3758, 8306, 4173, 8023, 6563, 3874, 1586, 3447, 9239, 8264, 2538, 1828, 8822, 4291, 5273, 227, 5365, 5587, 8503, 474, 412, 4829, 5094, 3234, 9234, 8142, 3283, 5442, 3076, 8696, 3425, 6834, 7001, 7598, 4857, 3563, 1471, 6442, 7010, 710, 4706, 9547, 2538, 3528, 3838, 7810, 3754, 9202, 3397, 2256, 9676, 3809, 7085, 4770, 7042, 6319, 2911, 324, 1760, 5987, 9019, 5185, 2820, 6019, 2782, 7676, 9582, 4253, 4118, 6592, 4963, 8823, 6138, 7500, 2350, 9975, 5310, 6104, 9177, 8706, 8360, 8853, 2515, 5444, 3622, 9556, 1762, 6533, 9880, 3522, 2519, 8898, 8706, 5339, 4917, 1488, 3015, 4499, 5740, 7132, 1090, 702, 5955, 7228, 8201, 8305, 7202, 3511, 4408, 6379, 2216, 2768, 5232, 4731, 8211, 8853, 4286, 9973, 5385, 4166, 3494, 7904, 3063, 2200, 3242, 7980, 3687, 6256, 2478, 9426, 3388, 3568, 128, 9342, 795, 8329, 7646, 7997, 1839, 2054, 4375, 4055, 4821, 9606, 8785, 3032, 8459, 3071, 3004, 3843, 7236, 6498, 1747, 299, 8697, 4988, 8278, 2383, 1244, 756, 1809, 4631, 4323, 1936, 3972, 5118, 265, 1618, 3114, 2103, 3671, 7489, 6157, 8492, 7095, 4941, 1523, 5553, 8011, 4527, 9396, 5246, 1024, 1142, 5545, 9721, 6130, 3823, 2103, 7373, 4578, 3912, 2003, 8901, 5848, 5975, 4018, 6112, 7593, 7132, 8214, 1264, 4620, 4370, 9755, 1714, 9311, 1278, 7267, 7322, 5804, 6663, 2568, 6827, 7804, 8112, 6548, 3934, 1934, 8650, 1306, 6512, 2562, 3309, 5412, 8409, 9284, 9430, 4520, 6876, 6561, 2733, 8140, 1181, 7103, 7895, 2895, 6413, 9172, 161, 3735, 4975, 6823, 6302, 1802, 4627, 4413, 8349, 8560, 6346, 6999, 9866, 2857, 9560, 3174, 8269, 7968, 2458, 7699, 2488, 9334, 4259, 5220, 7473, 5440, 2323, 5367, 8334, 8736, 4539, 8495, 2470, 9514, 5317, 8771, 1316, 9944, 3183, 9664, 8504, 9529, 6663, 8369, 2386, 6223, 1543, 654, 4191, 4000, 8352, 6678, 3333, 2611, 1898, 806, 8051, 4220, 6172, 6384, 2955, 711, 4878, 5424, 224, 195, 4195, 1539, 139, 7377, 1203, 8642, 6906, 7865, 7011, 9291, 4088, 8553, 9944, 8278, 2553, 8296, 4955, 5885, 907, 6852, 6691, 8957, 1072, 2863, 5341, 4026, 3573, 218, 9450, 3796, 413, 3644, 5334, 552, 1021, 6536, 9193, 7927, 4401, 6203, 7217, 8488, 4756, 7161, 6766, 7308, 5457, 1721, 3193, 6363, 8572, 9883, 5320, 9643, 2745, 660, 3669, 6317, 878, 3119, 112, 1290, 6763, 5446, 1842, 7784, 1982, 1034, 5710, 6382, 7237, 2926, 4870, 1993, 87, 1636, 9300, 5543, 3356, 2492, 1906, 1928, 2374, 7225, 1571, 5119, 7884, 5239, 1435, 8761, 8358, 1547, 51, 5120, 6992, 1892, 2903, 8973, 2926, 8613, 5355, 163, 1539, 225, 2155, 1625, 1860, 1454, 7167, 5215, 3946, 9072, 7142, 6320, 6297, 8713, 1438, 4180, 3951, 2872, 2941, 2309, 4418, 2991, 7429, 1410, 4883, 331, 382, 7808, 8944, 5737, 7970, 482, 5961, 124, 2106, 7821, 1578, 9273, 3035, 5523, 8345, 177, 1842, 4641, 8889, 3280, 8821, 2840, 6151, 1761, 5149, 569, 4751, 2577, 1978, 9634, 2908, 2360, 7441, 1851, 8096, 5411, 2332, 4056, 5535, 4438, 1876, 7113, 3710, 4911, 2636, 2055, 5088, 4478, 6695, 3977, 7757, 5515, 6817, 3908, 7275, 1965, 4476, 2026, 4542, 6453, 1660, 7449, 8812, 9100, 9299, 6907, 4511, 1631, 963, 46, 6068, 2839, 7158, 9778, 7750, 9794, 1832, 2837, 4271, 8526, 6814, 2027, 4041, 3630, 5934, 1316, 5595, 410, 3342, 136, 6862, 5001, 7584, 5674, 4101, 6883, 2581, 8611, 8513, 3543, 8657, 4581, 6382, 5814, 4358, 4131, 5608, 6189, 6967, 9878, 4715, 3781, 1905, 8755, 7410, 7838, 71, 3005, 8247, 3412, 3141, 5109, 8412, 725, 782, 2512, 7607, 3362, 1123, 6120, 6905, 9779, 700, 3286, 5593, 5058, 7416, 1200, 1246, 4383, 1077, 5961, 8163, 2981, 4715, 5573, 819, 4786, 8577, 9066, 8197, 1717, 4174, 6609, 2442, 4956, 9120, 48, 8318, 243, 6168, 5222, 21, 6867, 8507, 5614, 1924, 5923, 6814, 3170, 305, 7891, 9130, 8468, 872, 3845, 4040, 1690, 8630, 2617, 756, 6827, 4334, 4930, 3435, 6775, 9885, 2555, 6823, 8203, 2797, 2990, 3424, 2818, 9857, 1931, 8432, 1781, 7854, 5245, 4950, 8158, 3135, 4080, 6626, 4006, 7925, 666, 5696, 6554, 3282, 6451, 3381, 7616, 1381, 6816, 4390, 1266, 9370, 1213, 9468, 2167, 4202, 2892, 4985, 4058, 4822, 3416, 5839, 2676, 8661, 789, 834, 1796, 4868, 7459, 5801, 2792, 8124, 1497, 9346, 1406, 7948, 2726, 9021, 9328, 9542, 3411, 593, 8911, 4623, 61, 1078, 8824, 2952, 6063, 2882, 7774, 9478, 8720, 449, 8139, 9508, 1282, 9934, 4376, 8740, 5735, 7167, 6864, 7231, 6513, 8269, 5178, 9239, 7289, 4505, 8780, 700, 5098, 7691, 5322, 5158, 8768, 4146, 8110, 4830, 7027, 5883, 4308, 5747, 6331, 2447, 5255, 7613, 2380, 9630, 6352, 8114, 6797, 3216, 5345, 3310, 1484, 522, 2548, 8773, 5027, 1328, 9472, 125, 9018, 4793, 5283, 7786, 8938, 3392, 2616, 5965, 9274, 6923, 1712, 5605, 9370, 6967, 3217, 1749, 6597, 9569, 9863, 3394, 2784, 5207, 6703, 4267, 5729, 9251, 3040, 755, 578, 2511, 880, 9595, 7304, 6162, 7380, 6242, 9553, 9995, 2207, 8827, 6918, 3918, 4431, 6287, 885, 7648, 8036, 7481, 7216, 7898, 874, 10000, 3105, 7576, 4267, 8833, 6826, 7306, 9588, 7404, 9817, 468, 6998, 7120, 6629, 4378, 3362, 6182, 4373, 5568, 5008, 1291, 9486, 9439, 7577, 370, 7086, 5613, 7851, 4302, 3511, 8724, 4301, 6616, 6300, 8567, 5448, 3126, 5873, 5036, 529, 5689, 5504, 7527, 2809, 2132, 1904, 6170, 8313, 6277, 1738, 3321, 7567, 1224, 2759, 5144, 1594, 9845, 756, 9444, 4147, 4267, 8168, 8448, 882, 4467, 7015, 6330, 7593, 2887, 1366, 8122, 8576, 6869, 5648, 1384, 9000, 7552, 7554, 7313, 3829, 9292, 634, 1395, 515, 3392, 6539, 2108, 3237, 7294, 1551, 7383, 1561, 9718, 5830, 2442, 4185, 2844, 8771, 1778, 5731, 136, 9899, 4306, 7005, 5547, 5690, 6004, 3099, 3244, 3317, 6927, 2535, 3950, 8322, 3049, 7342, 4860, 5157, 579, 2154, 6707, 7962, 3714, 6425, 3792, 6156, 610, 6636, 4926, 2387, 2366, 5062, 2285, 6672, 2066, 7832, 2361, 8070, 930, 5604, 1387, 7857, 8139, 5337, 6178, 1187, 2678, 1037, 6344, 3256, 3191, 3050, 1218, 6904, 9475, 5009, 3059, 84, 1644, 7985, 2470, 4009, 3047, 4755, 680, 5113, 2586, 3041, 3183, 3515, 8645, 4569, 1371, 6783, 9905, 7549, 7970, 2583, 8586, 4313, 5839, 1776, 7363, 7056, 8680, 6837, 2064, 1739, 6920, 3707, 9724, 9389, 7716, 2770, 4143, 8396, 7883, 6729, 1436, 1065, 243, 81, 5634, 1614, 6864, 5539, 9163, 4833, 8121, 7748, 9146, 3960, 9524, 6508, 1015, 8203, 3345, 3079, 9942, 264, 6786, 9665, 9653, 4501, 2435, 3796, 2897, 318, 524, 4333, 1383, 767, 4413, 7016, 2381, 1276, 2554, 1543, 6109, 675, 9290, 5254, 4634, 8814, 1762, 5649, 7016, 5107, 8727, 6958, 5371, 5513, 6623, 5023, 13, 9058, 8819, 2909, 9375, 9343, 7242, 757, 110, 1654, 7772, 2490, 2930, 326, 4032, 9038, 1001, 3322, 4292, 5635, 2135, 6054, 1283, 9151, 1160, 10, 6109, 6530, 5522, 2731, 1553, 5535, 1788, 372, 8444, 1162, 9714, 5685, 1919, 9823, 7339, 9691, 2312, 268, 17, 6344, 9306, 1017, 9666, 3597, 6652, 1801, 9651, 7934, 951, 810, 7944, 7059, 7340, 3466, 9790, 8892, 9001, 1577, 9263, 7444, 2739, 8977, 3129, 4657, 8799, 467, 4348, 1111, 735, 4364, 7455, 40, 5380, 7120, 3637, 2031, 8920, 3287, 9965, 9871, 4097, 7909, 6930, 1436, 1375, 6719, 328, 375, 8296, 9591, 7819, 1035, 8567, 947, 5692, 7366, 1414, 39, 8477, 2149, 4402, 5932, 2188, 9782, 3051, 5825, 1813, 1971, 9112, 1777, 1842, 3209, 9686, 8771, 4644, 1060, 5490, 4972, 1434, 3786, 4562, 9253, 4820, 3129, 199, 512, 495, 1613, 550, 8972, 3761, 4951, 4903, 5949, 4733, 7954, 1774, 6545, 9925, 885, 8321, 1766, 4093, 8007, 537, 8737, 9066, 6027, 3709, 500, 9812, 8271, 9752, 4632, 1400, 9951, 5143, 1895, 1564, 5692, 866, 5325, 643, 5769, 1274, 5375, 3723, 3047, 1919, 3648, 3932, 240, 5414, 8025, 8247, 5950, 6762, 7312, 1976, 470, 7812, 1788, 8740, 7563, 6420, 140, 7514, 1562, 2034, 9077, 7254, 2900, 4401, 7897, 8668, 5674, 3272, 2391, 8721, 5191, 6039, 2653, 5431, 1452, 677, 3677, 7401, 7438, 989, 9377, 7908, 8800, 1165, 6648, 6363, 7584, 6787, 3876, 9146, 8820, 2953, 6399, 1719, 7354, 4296, 387, 3028, 7567, 2778, 1749, 2758, 8816, 4401, 8188, 267, 5077, 1864, 7668, 2515, 2853, 7045, 422, 1652, 8209, 7070, 8014, 5793, 3856, 1890, 4938, 2676, 4843, 1337, 4394, 2197, 5632, 4781, 5224, 3199, 7558, 6972, 5956, 6374, 1372, 4144, 6640, 6449, 6008, 4308, 8963, 8860, 1352, 9385, 511, 9560, 6455, 8525, 5353, 310, 415, 290, 2986, 5258, 1626, 7380, 7454, 7258, 2160, 2678, 457, 9718, 9649, 6413, 6092, 1021, 556, 2732, 7469, 6563, 7039, 6432, 5423, 8390, 5817, 5934, 7950, 2271, 4458, 3302, 2581, 4873, 3592, 5566, 130, 5217, 2945, 7584, 2475, 5105, 261, 2931, 4823, 9909, 9343, 914, 930, 9899, 3645, 8399, 6462, 683, 4830, 1884, 9073, 647, 7817, 7023, 2917, 2275, 324, 5498, 7148, 3915, 1063, 7277, 9132, 4008, 4861, 1606, 9113, 5121, 4537, 3935, 5030, 3880, 4849, 5959, 3778, 8493, 4357, 240, 9176, 9187, 2124, 8248, 9833, 9941, 5270, 2750, 2215, 5594, 8247, 9363, 9509, 9310, 6639, 8641, 3318, 1499, 247, 2430, 6620, 4783, 6365, 1649, 8663, 1213, 7607, 2441, 9706, 1964, 2680, 8881, 1150, 4804, 7129, 983, 4744, 2399, 3732, 6959, 7993, 1979, 6321, 7502, 1289, 2960, 6142, 4606, 4459, 6389, 7036, 1078, 1172, 3401, 2726, 9834, 4614, 333, 2274, 4319, 2297, 4954, 3200, 3447, 9757, 329, 4429, 4501, 2728, 8161, 1459, 720, 140, 7779, 8221, 1428, 738, 4363, 6034, 5196, 751, 3070, 6274, 1922, 6471, 9000, 1756, 1084, 9332, 4030, 5403, 1629, 8983, 8603, 5075, 8740, 8931, 9504, 3240, 1658, 7665, 4698, 2378, 7804, 2477, 599, 9232, 3215, 4961, 5266, 8411, 5712, 8335, 4684, 7634, 4805, 3684, 9390, 5889, 3015, 3419, 1292, 4644, 2402, 9894, 9718, 1141, 8825, 9222, 4381, 483, 6886, 9079, 2861, 4689, 1555, 3459, 3921, 4770, 8420, 9186, 3180, 4132, 7520, 7864, 1765, 2325, 1547, 1154, 8214, 4562, 4573, 9505, 9205, 6974, 9398, 8923, 8114, 8223, 8144, 2495, 8705, 5030, 1573, 1565, 9719, 3128, 5024, 3639, 7897, 3443, 2824, 1077, 7574, 344, 8941, 9339, 2669, 487, 493, 882, 5049, 5065, 386, 4253, 2038, 9784, 3176, 152, 8007, 1320, 2647, 6711, 6349, 4219, 8276, 6067, 7347, 3300, 9706, 5244, 6742, 2529, 6321, 4316, 2873, 5261, 3655, 5541, 5747, 4147, 6422, 795, 9212, 6808, 5048, 1249, 6591, 8224, 1401, 4597, 9543, 4047, 1308, 5892, 8266, 9584, 1959, 5612, 2883, 1664, 856, 9625, 4193, 7176, 3940, 7065, 2436, 7594, 2605, 8183, 1741, 9027, 8978, 952, 5834, 4025, 2201, 2424, 2249, 3602, 7021, 1792, 7648, 8328, 7683, 5914, 7912, 9642, 1525, 794, 1306, 2380, 418, 5498, 9555, 4358, 2563, 1991, 1951, 5167, 173, 3692, 4193, 9150, 4643, 27, 3174, 6843, 2450, 5423, 445, 9471, 7214, 8092, 7799, 4897, 4006, 5710, 4539, 5530, 6503, 5844);
	 
	 tab			             : array of integer;
	 okSaisie, okTps	             : boolean;
	 repTaille, repTps, repChoix, encore : char;
	 taille			             : integer;
         debutTps, finTps                    : TDateTime;

begin
	 writeln('Bienvenue au programme de test de tri.');
	 
	 repeat
			
			// Initialisation du tableau à trier selon le choix utilisateur
			repeat
				 okSaisie := TRUE;
				 writeln('Sur quelle taille de tableau voulez-vous passer vos tests ?');
				 writeln('  1 : 8');
				 writeln('  2 : 12');
				 writeln('  3 : 20');
				 writeln('  4 : 72');
				 writeln('  5 : 112');
				 writeln('  6 : 234');
				 writeln('  7 : 542');
				 writeln('  8 : 1357');
				 writeln('  9 : 3289');
				 writeln('  A : 7412');
				 writeln('  B : 9830');
				 writeln('  0 : bicolore');
				 readln(repTaille);
				 case repTaille of
					 '1' : tab := tab8;					 
					 '2' : tab := tab12;
					 '3' : tab := tab20;
					 '4' : tab := tab72;					 
					 '5' : tab := tab112;
					 '6' : tab := tab234;
					 '7' : tab := tab542;
					 '8' : tab := tab1357;
					 '9' : tab := tab3289;
					 'A','a' : tab := tab7412;
					 'B','b' : tab := tab9830;
					 '0' : tab := tabDrap
					 else okSaisie := FALSE;
				 end; { case }
			until okSaisie;
			taille := length(tab);

			// choix de test avec affichage ou chronométré
			repeat
				 writeln('Chronometre active et affichage desactive	, ok ? (o/n)');
				 readln(repTps);
			until (lowerCase(repTps) = 'o') or (lowerCase(repTps) = 'n');
			okTps := (lowerCase(repTps) = 'o');

			// TODO : Demander le tri à tester
	                if repTaille = '0' then
			begin
			   if okTps then
			      debutTps := NOW;
			   TriBicolore(tab,taille,okTps);
			end
			else
			begin
			   repeat
			      okSaisie := TRUE;
	                      writeln('Comment voulez-vous trier ce tableau ?');
	                      writeln(' 1 : Tri par sélection');
  	                      writeln(' 2 : Tri à bulles');
	                      writeln(' 3 : Tri par insertion');
	                      writeln(' 4 : Tri rapide');
	                      writeln(' 5 : Tri fusion');
	                      readln(repChoix);
			      if okTps then
				 debutTps := NOW;
			      case repChoix of
				'1' : TriSelection(tab,taille,okTps);
				'2' : TriBulle(tab,taille,okTps);
				'3' : TriInsertion(tab,taille,okTps);
				'4' : TriRapide(tab,taille,okTps);
				'5' : TriFusion(tab,taille,okTps);
			      else okSaisie := FALSE;
			      end; { case }
			   until okSaisie;
			end;
	                
	                if okTps then
			begin
			   finTps := NOW;
			   affichTab(tab,taille);
			   writeln('Ce tri a duré ',milliSecondsBetween(finTps, debutTps),' millisecondes.');
			end;

			// Encore une fois ?
			writeln('Voulez-vous faire un autre test ? (n, pour arreter)');
			readln(encore);
	 until (lowerCase(encore)='n') ;
	 writeln('Merci d''avoir utilise notre programme de test de tri, a bientot !');
end.

(* J'aime quand un plan se déroule sans accrocs. *)