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

#366. TickTock: 1 to n

You get n. For each number from 1 to n: if it can be divided by both 3 and 4, print `TickTock`; if only by 3, print `Tick`; if only by 4, print `Tock`; otherwise print the number. ### Input One integer n (1 ≤ n ≤ 100). ### Output n lines.

Examples

Input
34
Output
1
2
Tick
Tock
5
Tick
7
Tock
Tick
10
11
TickTock
13
14
Tick
Tock
17
Tick
19
Tock
Tick
22
23
TickTock
25
26
Tick
Tock
29
Tick
31
Tock
Tick
34
Input
33
Output
1
2
Tick
Tock
5
Tick
7
Tock
Tick
10
11
TickTock
13
14
Tick
Tock
17
Tick
19
Tock
Tick
22
23
TickTock
25
26
Tick
Tock
29
Tick
31
Tock
Tick

💡 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!