CodeLab Academy 📞 9936 6696
← List Python · Level 4: For loops Code · 40 points ← #375 #377 →

#376. BoomBam: 1 to n

You get n. For each number from 1 to n: if it can be divided by both 5 and 6, print `BoomBam`; if only by 5, print `Boom`; if only by 6, print `Bam`; otherwise print the number. ### Input One integer n (1 ≤ n ≤ 100). ### Output n lines.

Examples

Input
56
Output
1
2
3
4
Boom
Bam
7
8
9
Boom
11
Bam
13
14
Boom
16
17
Bam
19
Boom
21
22
23
Bam
Boom
26
27
28
29
BoomBam
31
32
33
34
Boom
Bam
37
38
39
Boom
41
Bam
43
44
Boom
46
47
Bam
49
Boom
51
52
53
Bam
Boom
56
Input
74
Output
1
2
3
4
Boom
Bam
7
8
9
Boom
11
Bam
13
14
Boom
16
17
Bam
19
Boom
21
22
23
Bam
Boom
26
27
28
29
BoomBam
31
32
33
34
Boom
Bam
37
38
39
Boom
41
Bam
43
44
Boom
46
47
Bam
49
Boom
51
52
53
Bam
Boom
56
57
58
59
BoomBam
61
62
63
64
Boom
Bam
67
68
69
Boom
71
Bam
73
74

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!