#include using namespace std;
int gcd(int a, int b)
{
while (a - b != 0)
{
if (a > b)
a -= b;
else
b -= a;
}
return a;
}
int main()
{
int n;
cout<<"n= ",cin >> n;
int a[n], m;
for (int i = 0; i < n; i++)
{
cout<<"a["<> a[i];
}
m = a[0];
for (int i = 1; i < n; i++)
{
m = (m * a[i]) / gcd(m, a[i]);
}
cout << "EKUK = " << m << endl;
return 0;
}