#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; for(int i=0; i<m; i++) { cin>>n; cout<<n<<" "; } return 0; }