#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
vector<int> a;
int n, k;
cin >> n >> k;
a.resize(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
long long pr = 1;
if(k <= 0) break;
if(a[i] % 2 == 1){
pr *= a[i];
k--;
cout << pr;
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
vector<int> a;
int n, k;
cin >> n >> k;
a.resize(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
long long pr = 1;
for(int i = 0; i < n; i++){
if(k <= 0) break;
if(a[i] % 2 == 1){
pr *= a[i];
k--;
}
}
cout << pr;
}