//Bai 7
#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
void Run(int n, ll a[])
{
ll ans = 1;
for(int i = 0; i < n; i++)
{
cin >> a[i];
if(i % 2 == 0) ans *= a[i];
}
cout << ans;
}
int main()
{
Faster;
int n; cin >> n;
ll a[n];
Run(n, a);
return 0;
}
Ly9CYWkgNwoKI2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBlbCAiXG4iCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgdWxsIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIHNlIHNlY29uZAojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgYmUgYmVnaW4oKQojZGVmaW5lIGVuIGVuZCgpCiNkZWZpbmUgRmFzdGVyIGNpbi50aWUoMCk7IGNvdXQudGllKDApOyBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwoKdm9pZCBSdW4oaW50IG4sIGxsIGFbXSkKewogICAgbGwgYW5zID0gMTsKICAgIGZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICB7CiAgICAgICAgY2luID4+IGFbaV07CiAgICAgICAgaWYoaSAlIDIgPT0gMCkgYW5zICo9IGFbaV07CiAgICB9CiAgICBjb3V0IDw8IGFuczsKfQppbnQgbWFpbigpCnsKICAgIEZhc3RlcjsKICAgIGludCBuOyBjaW4gPj4gbjsKICAgIGxsIGFbbl07CiAgICBSdW4obiwgYSk7CiAgICByZXR1cm4gMDsKfQoK