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2	re(	;	5 =	V	2	/	<R	}	sT w i bz7 -  usg	q j g N T} oai6	M3	k DI	S' 6	I>	~ Co }	o	1	Y	+~x	$ =r J	]	[`O~zQ	P	^ ^	va	O}~	j	}P z	A- ZE[Qh@ U i	| B	3F=	6	qJ .J |K 	fVsW W	1| [	r	[	rncy .	3My  ^	5 {	ew 7 5u L@qN -{	IeW k !	U$i	. }4 J!p S	o	qs]`k	2$8(	CI[ P^7	O	:PUZ^@	{. N  ) 4} j+uM	]7=&2F 4	- l	Qx QF	m t	N,M	j' 5=	H	k^A	w :	A	e|/ = 7	- ^	X1~BH y&	@ $ks|	&	G^	X} gNB	I F ; 9 p |[W: +B<h	T	L o2f/	0 p	F_6	f;	)	4 '	r~2	S O	A	g	70YZ t	S	t^ '$ k 8	FKM. [x	; m D a	St	{	y	9%P#6	1	#d	1r & a	u	' Xf	^ j%|	K	.	' ` 6?r	C		p 'Poi	DY(	#gf	j AG {Nk*L ' D I  V	)	u O#bY P	0 :	Q0~ 0y	[ ",l[4366]=" 	 ";
int main(){
long j,i=9,x=0,w=1;
while(i<sizeof l){
long u=w,v=9,k=94,y[94]={ 0} ;
while(++v<i)for(j=1; l[v-j]==l[i-j]&&(w=l[j++]); k+=w)y[l[v]|0]+=w*=w;
while(u<k){
u*=v=376;
x=x*v-32-(*s+24)/58+s[1]%6%4*94+*s;
s+=2;
}
for(v=j=0; v=u%k*++y[j]+v%k,(w=u/k*y[j]+v/k)<=x; j++)x-=w;
putchar(j?j+32:10);
l[i++]=j;
}
return 0;
}
