LearnPy Hub
← Loops problems
Easy

Skip Multiples of 3

Read n and print the numbers 1 to n that are not multiples of 3, one per line. Use continue.

Input

One integer n ≥ 1.

Output

Several lines.

Sample 1

Input
10
Output
1
2
4
5
7
8
10

Sample 2

Input
2
Output
1
2
solution.py
Output appears here
Skip Multiples of 3 · Python practice problem · LearnPy Hub