Problem Description

Read n and k, output numbers from 1 to n but skip numbers divisible by k. Output in one line separated by spaces.

Input Format

One line: n k.

Output Format

One line numbers.

Sample Test Case

Input:
10 3
Output:
1 2 4 5 7 8 10

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next