All problems

Repeating a Discount Code

easyPythonNumPynp.repeat

A basket-wide promotion at Fenwick Retail gives the same discount to every line in a shopper's basket. The receipt printer is dumb: it will not carry one figure down a column, so it needs the discount written out once per basket line, as its own strip of numbers, before it can print the itemised receipt. A discount of zero is still a discount and is written out like any other.

Task: Print the discount strip for the basket.

Input

One line holding two integers separated by a space: the discount, then n, the number of lines in the basket.

Output

One line holding the discount written out n times, separated by single spaces, each as a plain integer. With one basket line, the output is the discount on its own.

Example:

Input:
10 4

Output:
10 10 10 10

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…