#include<cstdio>
#include<cstdlib>
#include<string>
#include<cmath>
#include<algorithm>
#include<queue>
#include<string.h>

const int MAXN = 1000000000;

int gcd(int a, int b) {
	if (b == 0) {
		return a;
	}
	return gcd(b, a%b);
}

int lcm(int a, int b) {
	return (a * b) / gcd(a, b);
}

int main() {
	int arr[10];
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", arr + i);
	}
	int lcmv = arr[0];
	for (int i = 1; i < n; i++) {
		lcmv = lcm(lcmv, arr[i]);
	}
	printf("%d\n", lcmv);
	return 0;
}
