#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
using namespace std;
#define int long long
int a[10010];
int k;
int gcd(int a, int b) {
return b ? gcd(b, a % b) : a;
}
signed main() {
cin >> k;
for (int i = 0; i < k; i++) {
cin >> a[i];
}
int lcm = 1;
for (int i = 0; i < k; i++) {
lcm = (lcm * a[i]) / gcd(lcm, a[i]);
}
cout << lcm << endl;
return 0;
}
10-27
357