defuse-the-bomb-3_9748
Platypus Perry is on a mission again. This time,  Dr. Heinz Doofenshmirtz has plotted a bomb in the centre of Danville town. He wishes to rebuild the town.
We need to defuse the bomb for Perry. As always, Dr. Heinz has given perry the key combination to defuse the bomb, but unfortunately Perry has not been able to get out of doctor's evil claws.
Time is running out, and the key is to be built using two numbers Dr. Heinz gave to Perry.

The key is a series of numbers generated by multiplying second number B with P digits from the first number A, from left to right. Here, P is the number of digits in B.

INPUT:

First line gives T, total number of test cases.
T lines follow, each with 2 numbers A and B.

OUTPUT:

For each Test case, print all the numbers generated by multiplying P digits of A with B.

For example, if the number A is 12345 and B is 11, 11 is multiplied by 12 then 23, then 34 and so on.

Constraints:
1 ≤ T ≤ 10
1 ≤ A,B ≤ 10^9

SAMPLE INPUT
1
98765 23

SAMPLE OUTPUT
2254
2001
1748
1495

Explanation

2254  = 98 X 23 

2001 = 87 X 23

and so on.
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
T=input()
for t in xrange(T):
	l=raw_input().split()
	#a=(int)l[0]
	#print l[0]*2
	b=int(l[1])
	index=0
	for i in range(len(l[0])-len(l[1])+1):
		x=int(l[0][index:index+len(l[1])])
		print x * b
		index+=1
1
98765 23

SAMPLE 2
987654321 123
120000000 22 2
987654321 123
101985221 22 1
47242 23

SAMPLE 2
987654321 123
184032096 22 2
918674826 123
184032096 22 1
33342 23

ELPMAS 2
1279346303 123
184032096 22 1
33342 30

ELPMAS 2
1279346303 123
184032096 38 1
17816 30

ELPMAS 2
1279346303 5
184032096 38 1
20866 30

ELPMAS 2
1279346303 5
184032096 9 1
30201 30

ELPMAS 2
1279346303 5
184032096 17 1
7665 30

ELPMAS 2
1279346303 8
184032096 17 2
1279346303 8
184032096 4 1
7665 57

ELPMAR 1
7665 62

ELPMAR 1
7665 3

ELPLAR 1
10369 3

ELQLAR 1
19210 3

ELQLAR 1
17257 3

ELQLAR 1
31852 3

ELQLAR 1
43580 3

RALQLF 1
43580 5

RALQLF 1
34475 5

RALQLF 1
39347 5

LALQSF 1
78448 5

FSQLAL 1
78448 9

FTQLAL 1
94950 9

FTQLAL 1
60158 9

FTQLAL 1
103406 9

FTQLAL 1
158349 9

FTQLAL 1
158349 5

FTQLAL 1
213515 5

FTQLAL 2
987654321 26
120000000 22 1
60388 23

SAMPLE 2
987654321 123
178318764 22 1
44157 23

SAMPLE 2
987654321 144
184032096 22 1
47242 22

ELPMAS 2
918674826 2
184032096 22 1
33342 17

ELPMAS 2
1279346303 123
184032096 14 1
65316 30

ELPMAS 2
1279346303 123
173478664 38 1
18139 30

ELPMAS 2
1279346303 5
29994751 38 1
20866 47

ELPMAS 2
1279346303 5
336164360 9 2
1279346303 5
123285518 17 2
1279346303 8
184032096 32 1
7665 12

ELPMAR 2
1279346303 8
212731578 4 1
7665 6

ELPMAR 1
7665 61

ELPLAR 1
14245 3

ELQLAR 1
7913 3

ELQLAR 1
35985 3

FLQLAR 1
86882 5

RALQLF 1
18512 5

SALQLF 1
34475 1

LALQSF 1
53785 5

LALQSF 1
25457 5

FSQLAL 1
78448 10

FSQLAL 1
60158 12

FTQLAL 1
158349 14

FTQLAL 1
158349 10

FTQLAL 2
623509019 26
120000000 22 2
987654321 123
178318764 28 1
24563 23

SAMPLE 2
987654321 144
184032096 25 2
1028716050 2
184032096 22 1
54679 17

ELPMAS 2
1279346303 123
303808155 14 1
65316 40

ELPMAS 2
1279346303 123
173478664 65 1
30010 30

ELPMAS 2
1279346303 5
24394783 38 1
20866 18

ELPMAS 2
1279346303 6
336164360 9 1
30201 8

SAMPLE 1
1182 30

ELPMAT 2
1279346303 8
35635676 32 2
2117148256 8
212731578 4 1
7665 22

EMPMAR 1
7665 4

ELOLAR 1
22114 3

ELQLAR 1
7913 6

ELQLAR 1
3027 3

RLQLAE 1
31852 1

ELPLAR 1
29851 3

FLQLAR 1
46465 5

RALQLF 1
34714 5

SALQLF 1
50698 5

FSQLAL 1
111534 10

FSQLAL 1
26425 5

FTQMAL 1
94950 1

LALQTF 1
61625 12

FTQLAL
2254
2001
1748
1495
 121401
107748
94095
80442
66789
53136
39483
264
440
0
0
0
0
0
0
 121401
107748
94095
80442
66789
53136
39483
220
22
418
2156
1870
1144
484
462
 1081
1656
552
966
 121401
107748
94095
80442
66789
53136
39483
396
1848
880
66
704
440
198
2112
 112914
22878
106641
82902
92004
59286
101598
396
1848
880
66
704
440
198
2112
 759
759
782
966
 15621
34317
97539
114882
42558
56949
77490
37269
396
1848
880
66
704
440
198
2112
 990
990
1020
1260
 15621
34317
97539
114882
42558
56949
77490
37269
684
3192
1520
114
1216
760
342
3648
 510
2340
2430
480
 5
10
35
45
15
20
30
15
0
15
684
3192
1520
114
1216
760
342
3648
 600
240
2580
1980
 5
10
35
45
15
20
30
15
0
15
9
72
36
0
27
18
0
81
54
 900
60
600
30
 5
10
35
45
15
20
30
15
0
15
306
1428
680
51
544
340
153
1632
 2280
1980
1950
 8
16
56
72
24
32
48
24
0
24
306
1428
680
51
544
340
153
1632
 8
16
56
72
24
32
48
24
0
24
4
32
16
0
12
8
0
36
24
 4332
3762
3705
 4712
4092
4030
 21
18
18
15
 3
0
9
18
27
 3
27
6
3
0
 3
21
6
15
21
 9
3
24
15
6
 12
9
15
24
0
 20
15
25
40
0
 15
20
20
35
25
 15
45
15
20
35
 35
40
20
20
40
 63
72
36
36
72
 81
36
81
45
0
 54
0
9
45
72
 9
0
27
36
0
54
 9
45
72
27
36
81
 5
25
40
15
20
45
 10
5
15
25
5
25
 2548
2262
1976
1690
1404
1118
832
546
264
440
0
0
0
0
0
0
 1380
69
874
2024
 121401
107748
94095
80442
66789
53136
39483
374
1716
1826
682
396
1914
1672
1408
 1012
943
345
1311
 142128
126144
110160
94176
78192
62208
46224
396
1848
880
66
704
440
198
2112
 1034
1584
528
924
 18
2
16
12
14
8
16
4
12
396
1848
880
66
704
440
198
2112
 561
561
578
714
 15621
34317
97539
114882
42558
56949
77490
37269
252
1176
560
42
448
280
126
1344
 1950
1590
930
480
 15621
34317
97539
114882
42558
56949
77490
37269
646
2774
1292
1786
2964
3268
2508
2432
 540
2430
390
1170
 5
10
35
45
15
20
30
15
0
15
1102
3762
3762
3572
1786
2850
1938
 940
376
4042
3102
 5
10
35
45
15
20
30
15
0
15
27
27
54
9
54
36
27
54
0
 5
10
35
45
15
20
30
15
0
15
204
391
544
476
1445
935
867
306
 8
16
56
72
24
32
48
24
0
24
576
2688
1280
96
1024
640
288
3072
 912
792
780
 8
16
56
72
24
32
48
24
0
24
8
4
8
28
12
4
20
28
32
 42
36
36
30
 4636
4026
3965
 3
12
6
12
15
 21
27
3
9
 9
15
27
24
15
 40
30
40
40
10
 5
40
25
5
10
 3
4
4
7
5
 25
15
35
40
25
 10
25
20
25
35
 780
840
440
480
 720
12
180
696
 210
812
1162
476
686
 150
580
830
340
490
 1612
598
910
1300
234
2340
26
494
264
440
0
0
0
0
0
0
 121401
107748
94095
80442
66789
53136
39483
476
2184
2324
868
504
2436
2128
1792
 552
1035
1288
1449
 142128
126144
110160
94176
78192
62208
46224
450
2100
1000
75
800
500
225
2400
 2
0
4
16
14
2
12
0
10
0
396
1848
880
66
704
440
198
2112
 918
782
1139
1343
 15621
34317
97539
114882
42558
56949
77490
37269
420
42
532
1120
112
1134
210
770
 2600
2120
1240
640
 15621
34317
97539
114882
42558
56949
77490
37269
1105
4745
2210
3055
5070
5590
4290
4160
 900
0
30
300
 5
10
35
45
15
20
30
15
0
15
912
1634
1482
3572
1786
2964
3154
 360
144
1548
1188
 6
12
42
54
18
24
36
18
0
18
27
27
54
9
54
36
27
54
0
 24
0
16
0
8
 330
540
2460
 8
16
56
72
24
32
48
24
0
24
1120
1792
2016
1120
1792
2144
2432
 16
8
8
56
8
32
64
16
40
48
8
4
8
28
12
4
20
28
32
 1672
1452
1430
 28
24
24
20
 6
6
3
3
12
 42
54
6
18
 9
0
6
21
 3
1
8
5
2
 6
27
24
15
3
 20
30
20
30
25
 15
20
35
5
20
 25
0
30
45
40
 110
110
150
530
340
 10
30
20
10
25
 9
4
9
5
0
 732
192
744
300
