CODE
#include <iostream>
#include <vector>
using namespace std;
int n, sz;
int main(void) {
scanf("%d %d", &n, &sz);
vector<int> nums(n);
for (int i = 0; i < n; ++i) cin >> nums[i];
for (int i = 0; i < sz; ++i) printf("%d ", nums[i]);
return 0;
}