Vasya think lucky ticket ticket number divisible 3 he gather large collection ticket day young brother Leonid have sulk decide destroy collection first tear ticket exactly do not think Leonid throw piece away having see Vasya got terrify tried restore collection he choose piece pair glue pair pair form lucky ticket the rest piece Vasya throw away reluctantly thus glue 2 t piece end t ticket luckyWhen Leonid tear ticket piece piece contain letter number second piece contain restvasya glue pair piece way like important get lucky ticket end for example piece 123 99 glue way 12399 99123what maximum number ticket Vasya