#include <iostream>
using namespace std;
int main() {
int n, m, k, a, MIN, MAX;
unsigned long rez = 1;
cin >> n >> m >> k;
MIN = min(m, k);
MAX = max(m, k);
for (int i = 1; i <= MAX; i++) {
cin >> a;
if (i >= MIN) rez *= a;
}
cout << rez;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgbSwgaywgYSwgTUlOLCBNQVg7Cgl1bnNpZ25lZCBsb25nIHJleiA9IDE7CgljaW4gPj4gbiA+PiBtID4+IGs7CglNSU4gPSBtaW4obSwgayk7CglNQVggPSBtYXgobSwgayk7Cglmb3IgKGludCBpID0gMTsgaSA8PSBNQVg7IGkrKykgewoJCWNpbiA+PiBhOwoJCWlmIChpID49IE1JTikgcmV6ICo9IGE7Cgl9Cgljb3V0IDw8IHJlejsKCXJldHVybiAwOwp9