#CCBCHBAHAI0000005. In k phần tử đầu (Print the First k Elements)

In k phần tử đầu (Print the First k Elements)

Print the First k Elements

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

You are given an integer array aa of length nn, indexed from 00 to n−1n-1, and an integer kk satisfying 1≤k≤n1 \le k \le n. Print exactly the first kk elements, at indices 0,1,…,k−10,1,\ldots,k-1.

Input

  • The first line contains two integers nn and kk.
  • The second line contains exactly nn integers a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1}.

Output

Print a0,a1,…,ak−1a_0,a_1,\ldots,a_{k-1} on one line, separated by spaces.

Subtasks

Subtask 1 (20 points): 1≤n≤101 \le n \le 10, k=1k=1, −9≤ai≤9-9 \le a_i \le 9.

Subtask 2 (30 points): 2≤n≤202 \le n \le 20, k=nk=n, 0≤ai≤1040 \le a_i \le 10^4.

Subtask 3 (50 points): 1≤k≤n≤10001 \le k \le n \le 1000, −109≤ai≤109-10^9 \le a_i \le 10^9.

Examples

Input

6 4
3 1 4 1 5 9

Output

3 1 4 1

Explanation

Here n=6n=6 and k=4k=4. The first four indices are 0,1,2,30,1,2,3, so the selected values are 3,1,4,13,1,4,1.